I have use the following Jquery plugin selectToUISlider on my web site which has worked fine in IE8,FF, Chrome however when viwing the same site in IE9 the slider doesn't slide when using the mouse to drag the slider. I can still click on each value and the slider will move/jump to the required value. I've debugged the javascript in both FF and IE9 and I can see that in IE9 the slide event doesn't get fired, where in FF it does.
unfortunatly I don't have external web access on a machine with IE9 to try the slider demo pages out to ensure that the demos work in IE9.
The script is written in Jquery, it's a simple piece of code which I've seen on another website here [URL]. I modified the code a bit to work with a website I made for my portfolio. The problem with the code is that is works fine in firefox but it doesn't on chrome. the code doesn't break entirely but on chrome the images doesn't slide, it just jumps from image to image. here's the code
Code: var settings = { startingPosition : 0, //--------------------------------set starting position for images, 0 for first image slideSpeed : 550, //---------------------------speed of slide, seconds/fast/slow easing : 'linear', //-------------------------easing type navigationClass : 'slider_navigation', //--------------class of navigation (the prev and next) activeItemClass : 'slider-current-active-element', //--name of class to be added to first element repeat : true, //-----------------------------make gallery neverending .....
Most of it works fine but I'm guessing the animate part in the problem Code: //the slide animation elContainer.animate({ 'marginLeft' : animateToWidth }, opt.slideSpeed, opt.easing, function(){ //if forward is clicked if(opt.repeat && direction == 'forward'){ $("> :first", elContainer).appendTo(elContainer).css({opacity : 0}).animate({opacity : 1}, 400); elPosition += imgWidth; elContainer.css({ 'marginLeft' : elPosition });}
Here's the dummy site I made [URL]. I'm no expert on javascript so how to make the code better?
If slideToggle()'s parameters were expanded to include a separate callback for sliding up and sliding down. Or for backwards compatibility, perhaps include an optional boolean parameter in the callback to more easily discern between a slideUp and slideDown operation.
I have a form with two slider on it so the user can select an amount. The slider works fine and passes the values to email ok etc. but when the page is loaded there is "[object Object]" in box of the second slider. I can't find the problem with the code as it is the same for the first slider.
1.I found a Slider Toggle thats demonstrated here [URL] and it seems to work fine but only if the link is placed above the div that slides down.. im trying to make the div slide down from above my menu and i want 1 of the links on my menu to toggle the slider. how do i get it work to where I can place the link below the sliding div? 2. the script originally used .fader{opacity:0;display:none;} but I wanted the slider div to be visible if javascript was disabled so I added
jQuery(".fader").hide(); so its now <script type="text/javascript"> $(document).ready(function() { jQuery(".fader").hide(); $(".fadeNext").click(function(){ $(this).next().fadeSliderToggle() [Code]...
I have to change the slider color depending on its value, but I didn't manage to do it, I changed the attribute "background" of the class "ui-slider-range" this way : $("#slider.ui-slider-range").css("background","red"); Since I have three states (red, orange and green) I have to use three sliders, each one has one color, all hidden at the beginning then I show the appropriate slider when the value changes.
I've got the following problem: I have a Jquery slider and I want to disable the click on the slider. I only want to change the slider when I click and drag the pointer. Standard you can also click everywhere on the slider and the pointer will go to that point. That I don't want. .
I have a php code that creates a select combo box depending on some values stored in a database and I am trying to make it look nicer I found the jquery slider I found this but it does not work in the environment I am working (joomla) well, it does but it disappears as soon as I move the slider. so if I had
I'll slideUp a div, load some ajax, then slideDown the result.In the result, there are two more divs (navigation and 'subcontent' containers)I have links in the navigation div that should fadeIn new content (via ajax) into the subcontent container.Now, the fadeIn fadeOut functions operate correctly _until_ I use a slide on the larger div. If I slide at all, everything turns into a slide, even within the subcontainers. I'm not sure what's going on.ere's an example structure for the divs:
<div id="globalnav">Anchors/Links for the maincontent div</div> <div id="maincontent">"maincontent" should slide open and closed. <div id="nav">Anchors/Links in here</div>
I look for something in jquery ( a sliding panel div that can also be collapsed and shows the correct image, hard to explain please see below link, its used on this [code]Anything such exist for jquery with the same features?
im trying to make a sliding tab menu, The menu is already made with animations and such, however now im trying to integrate the menu with the Divs i have for each menu item. I really just need something to start me off.. Basically on click i want the current selected item and div to fadeOut to the left and the newly selected to fadein from the right..
I have a container div with two inner divs. I have one inner div visible taking up 100% of the visible area and another hidden div. I want the visible div to slide to the left while simultaneously sliding the other div in from the right. This works fine except that while the right div is sliding in, it appears below the left div. How can this be done?
I've got a bunch of <div> blocks, with a fixed width and height, that are all left floated.I would like a user to be able to click a "remove" link and have it delete a box, and all the boxes to the right "slide in" to fill the void created.I have it working well enough with a "snap" transition. I made that term up because I'm not sure how else to describe it--by "snap" transition I mean that the boxes to the right "snap" into position--there's no "sliding" or easing as they move, it's just moment their in their old positions, and the next moment, everything has been rearranged and they're in their new positions. how to adequately describe it in text, so here's a video showing what I mean: [URL]
When you click on it it hides the panel. All good so far. It works exactly how I want it to in FF, but in IE7, IE8 and Chrome it jumps to the top of the screen when animated.I'm positioning it at the bottom with CSS. Do I need to add another CSS positioning for when it is animated, or is there something up with the javascript?
One on the left and contains the buttons to control the others and occupies half the page -left half- 2nd that upon a button press from the 2nd slides down in the middle the others occupy the right half of the page and are behind each others and are viewed up button click on the 1st, on 1st click the 2nd comes down in the middle and the 1st one of the right divs slides out of sight and makes the one behind it visible, on second button the one behind it slides out of sight and makes the one behind THAT one visible my problem is only ONE part of the sliding div's is sliding and then they just disappear, and i want to be able 2 force a delay between actions, and the 2nd div that is supposed 2 slide down is actually sliding UP :
1st things first does anyone know how do i hide a div on button click and show the one behind it?
Update 2 question: how do i make #box8 slide to the right out of side.
i am using a sliding image gallery and want to indicate the selected thumbnail by showing a dot below the thumbnail. i am new to scripting and have been trying tweak the code i found (which had the thumbnails at 50% opacity when unselected and 100% opacity when selected), using that code, i'm hoping i can instead make an image of a dot show at 100% opacity when the thumbnail above is selected and 0% opacity when the thumbnail is not selected. here is the script where i think i can achieve this:
I am trying to use a jquery sliding top menu which i found here: [URL] and I have got this to work in the past on a website I built from scratch, but I am trying to build my website with wordpress, and I am having trouble getting it to work this time, it is going behind divs, and flying out too far. View problem here: (the 'Log-in' tab at the top) [URL]
Is it possible to show the details of each record from the recordset in a show hide way?Each record would have a title - I need the sliding div to show the relevant info when the title is clicked on.Don't know if i've made this very clear so have posted the currect code below. At the moment clicking on any record drops down only the very first record.
Is there a jQuery function that can cause an element to slide down as in fly from an edge of a screen to the location that it is supposed to be at?The slideDown();functioncauses an element to start at the top of the container the element it is applied to and then roll down.
I guess what I am looking for is something that would on an event slide from an edge of a screen or browser window to where it is supposed to go?
I have 2 divs on a page, the outer div has an inner div nested within it, both have different background images set to them. I managed to program the following fine: $(function(){ $("div.outer").hover( function() { $("div.inner").stop().animate({"opacity": "0"}, "slow"); }, function() { $("div.inner").stop().animate({"opacity": "1"}, "slow"); }); });
So that when you hover over the div, the inner div with the background image fades in, and then out on rollout. Why will the following code not slide the inner div up and down: $(function() { $("div.outer").hover( function() { $("div.inner").stop().animate({top:"-200px"},{queue:false,duration:200}); }, function() { $("div.inner").stop().animate({top:"0px"},{queue:false,duration:200}); }); }); I am using jQuery 1.5 min.
making a site where i have multiple menu bars sliding up or down showing content. I'm wondering if there is a way to control the contents of the sliding div because now it slides up slightly aswell as the div gets closed (or opened), but i'd like it to stay where it is.So basicly i want the contents of the sliding div not to move when its animated, is that possible? Maybe with another jquery command?
I have some panels - they slide out when the corresponding tab is clicked. I've used .toggle() to get this working, and animate the right (absolute) position to move the panel left or right. This works fine on it's own, but within the panel, I have to have an additional 'close' button. My script, and I'm sure it's really convoluted, but with my limited knowledge it was the only ways I could think to achieve what I wanted:
HTML: <div id="containerDiv"> <span><a href="#" id="tab">Tab text</a></span> <div id="hiddenDiv"> <p><a href="#" class="xclose">Close</a></p> <p>Nisi natoque rhoncus dictumst enim odio? Arcu ac et, hac in ridiculus dolor placerat, parturient etiam mattis pid nunc tortor quis tincidunt porta sit elementum etiam penatibus, porta augue penatibus sed.</p> </div></div>
Is there some way to either: Check the position ofcontainerDiv before executing the .toggle - so, if right = 0 (set by a.xclose), then start the toggle from the beginning position?2. saying that after #hiddenDiv a.xclose is clicked, reset the position to what's default in the css?