JQuery :: Calculating Value Based On Two Sliders?
Oct 14, 2009I am trying to calculate a value based on two sliders.
This is the code that I am using:
var value1;
var value2;
$(function() {
[Code]....
I am trying to calculate a value based on two sliders.
This is the code that I am using:
var value1;
var value2;
$(function() {
[Code]....
When it comes to JavaScript, I am implementing a couple of Coda sliders onto a site, and as far as I am aware, you can have two sliders on one page, but for me this isn't working.
The effect is using jQuery, and the page can be found here: [url]
The first slider works well, but the second doesn't load properly.
I need the value of my drop down box options to contain size information rather than price. However I would like to be able to calculate a price for the items based on what size the user selects as well as the quantity. Below is the code I came up with (which doesn't work obviously)What can I do to get this to work for me?
<head>
<script type="text/javascript">
<!--
[code]....
I'm looking to implement 2 different sliders on a page. the test page is [code] the main picture besides the passion leadership is jquery and does not move on this page however on every other page where that is the only slider it works.Now on this index2.php page you can see i put a slider in for a scrolling banner underneath the main banner and it works fine.Is there a way that I can have the 2 work hand in hand.
View 2 Replies View RelatedReally struggling trying to get 2 seperate sliders to work on my web page.
take a look at;
[URL]
not a spam its test site so nothing to gain from my end.
the slider at the top works fine, but the 3 boxes with the arrows underneath should scroll/slide back and forward when clicked. If I remove the js links for the top slider the bottom then works;
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery.fancybox.js"></script>
[Code]....
which isprobablyeasy to tell, but I was hoping someone would be able to answer my question regarding the jquery accordion content sliders or point me in the direction of one that fits my needs.I am wondering if there is an accordion plug in out there that will reveal content based on whether or not you've moused over an image or clicked on it. I've seen a few, but what I have yet to see is one where the button is in a separate div than the content holder.For example, you could have a rotating image you roll over with your mouse and 200 pixels to the right text suddenly appears to define the word image you just rolled over.
View 2 Replies View RelatedTo have multiple linked sliders that all share a maximum value, for example, I would have 10 sliders, each set to 50, with a pool of 10 additional points to spend. If I assign all 10 points to 1 slider, the other 9 are locked out, or I could spend 1 point on each slider.
View 1 Replies View RelatedI am working on a project. I have to put up a tab panel of four option. And in each tab i have to put an image slider. I have used many plugins for this. Tried different plugin for different tab. Few times have problem with tab panel and few time compatibility with all browsers have been issue.
View 1 Replies View RelatedI am looking to have multiple image sliders (javascript / jquery) on one page. I have built the framework and have gotten one slider to work.
However, when adding in another slider, I have only confused the situation.
Below is the html and css. Let me know where I've gone wrong here.
Will I need another set of css classes for each slider?
How do I call a second slider?
The html/javascript:
I have 3 sliders on my home page and I would like to make them start one after the other, so 1st would start immediately, then after a short delay the second one, and later the 3rd, so they don't make the transition at the same time. The slider I am using is Avia Slider [url]
Trying this code but they are still running synchronously:
Code:
How can I achieve what I need?
Having a problem on a clients website incorporating two js sliders in the same page. The scripts before editing were the TinySlider and TinyFader from [url]
The parsers in Internet Explorer, Firefox and Chrome cannot seem to differentiate between the two scripts, although I tried altering various defined names for script control it didn't make much difference.
The problems are the controls of the first slider operate the second and only the second slider works. Also, I'm getting validation errors (document type does not allow element "li" here; missing one of "ul", "ol" start-tag) where the showroom (second) script content lies. Not sure if this is related or not but either way if I try to fix it the only working slider is broken.
Here is the testing url.[url]
does anyone know a good online resource that shows you how to do image sliders on a web page? For example, I have a image and a arrow (image) above this and the position of the arrow is dependent on a value (which I have).
View 5 Replies View RelatedI have two sliders on the same page. They are both essentially the same pictures, just different sizes of each other. Demo site [url]
How can I make it so that when you click on one image on the bottom, the top slider changes to the picture that was clicked?
I have a Nivo slider on each page of a site. The first page I put it on works fine, any other slider will not work the area that should be the slider simply appears as a block of colour.I initially thought that changing the id's would make no difference as each slider is on a separate page but decided to give it a go anyway as I had no other idea as to what it might be causing the problem.So, I have tried renaming the id's of the subsequent sliders (i.e #slider2 etc) and changing the call to the function at the bottom of the page to match this for example;
$(window).load(function() {
$('#slider2').nivoSlider();
});
and also adding these id's to the CSS to ensure the styles are applied to the new id's but nothing seems to work see here [URL] Ignore the rest of the pages I have not implemented the slider on these yet.
I'm trying to set up a page that has one big image slider that displays a set of images by default. Then underneath this there are links for more galleries, and when you click on them they load right there in the big image slider. I don't want these links to go to a new page. What I'm after is demonstrated at this URL: First Comes Love **|** Wedding Photography by Alison Bank
How do I set this up? I'm thinking I need some kind of preload images code?
I am considering using Nivo Slider, but open to suggestions. Also, I'm building my site in Wordpress if that has any impact.
I have a div that is absolutely positioned and stretch on all sides using top:
10px; left: 10px; bottom: 10px; right: 10px;
When I try to get the height of the div, using $('#id').height(); I get 0 (zero). Is there a problem calculating the height of elements like this one, or am I missing something?
I've managed in the past to cobble together a few simple scripts.
I have an html page, with numerous tables in this format:
<table class="tableClass" id="tableID">
<col class="date" />
<col class="reference" />
<col class="amount" />
[Code].....
This (apparently) totals all 'amount' cells in the page, and writes it in *all* the 'total' cells - close, but obviously I'm not correctly specifying that each total should be displayed in its parent.
I'm working on a script to pass the content height to some other element. The whole script is within the document ready function, but somehow Google Chrome thinks the content height is 0 (zero), because it's so fast. When I set a timeout it works correctly, but I don't really like this solution because of the delay.
var contentHeight = ($('body').height();
setTimeout(function() {
var contentHeight = ($('body').height();
[code]....
I installed this tool tip plugin
It was super simple to install and customize and I am more than happy with it, except for one little thing.
The position of the tool tip is not calculating properly. I attempted to see if was based on the position element in the CSS of the containing div, but I changed all of them around to see if it would make a difference and it did not fix the problem.
Changing the containing div to position:relative the tool tip actually moves, but it still does not appear in the proper place above the link.
If you go to this example page
the pop up selector is the text under the "Details" table with the darker background. When you click on that text, the tooltip pops up, but about 350pixels away from the text.
Im using a jQuery script to show/hide a div based based on the selection made via a dropdown.
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
The problem im having is that the value used in the dropdown lists are price values eg 10.00
Consequently jQuery seems to interprit these as css notations, meaning the code doesnt work.
Given the following input tag which is enclosed within a hidden div tag:<input id="X" class="Y"/> this call (id-based) locates the tag: $(this).find("#X")but this one doesn't (class-based)I couldn't find any documentation indicating find() working differently when using id-based vs class-based selectors.
View 1 Replies View Relatedi have a table, with 2 numeric values at the minute, if the checkbox is selected I want the total price to be shown? this is the form I have with the numeric values
<form id="calculation" action="#" method="post">
100 <input type="checkbox" name="check1" value="100" onClick='total_cost()'/>
120 <input type="checkbox" name="check2" value="200" onClick='total_cost()'/>[code].....
I am trying to write a script that will take a date of birth and another date and, if the person was over 75 years old on the createdDate, return "true" (otherwise return "false").
Unfortunately my code doesn't seem to return either 'true' or 'false'!
The code is:
var dateofBirth="30/10/1982";
var createdDate="01/12/2010";
var sd = dateofBirth.split('/');
var dob = new Date(sd[2],sd[1],sd[0]);
[Code]....
I want to create a link that a user can click which will create a popup
telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString();
alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely,
this piece of code used to work but all of a sudden it doesn't for some
unknown reason. Can anyone tell me what's wrong with the above code?
I have two date fields (check in, check out) and "number of days"
field.
I want the script to calculate automatically the difference.
For example: I have defaults dates, and I want the script to put the
difference in "number of days" field. And if the user will change the
date, the number of days will change automatically.
I am using date of birth field in my application and i m taking date of birth in yyyy-mm-dd format.
I need to calculate age by using this date of birth and should show alert if age is less than 5 years.