Fading jQuery slideshow flicker / queue problem on mouseover (slideSwitch.js) -
I have optimized the code from Jon Raasch, which is the basically fading slide show script 'active' slide Promotes a high Z-index and animates ambiguity for the fading effect.
This is working fine with a pause which temporarily stops the slide show on the mouseover.
The issue I am facing is that I am trying to stop the script when I repeatedly shut down the script. << / P>
I have experimented with Stop () , but it has not worked properly.
Can someone give advice to put me in the following code? Or if I'm going wrong about it !!
Cheers
function slideSwitch () {var $ active = $ ('# HP-Attributes div.active'); If ($ active.length == 0) $ active = $ ('# HP-featured divi: last'); Var $ next = $ active.next (). Length? $ Active.next (): $ ('# hp-featured div: first'); $ Active.addClass ('Last Active'); $ Next.css ({opacity: 0.0}) .addClass ('active'). ({Opacity: 1.0}, 1000, Work () {$ active .removeClass ('active last-active');}); } $ {Function () {var playSlideshow = setInterval ("slideSwitch ()", 5000); $ ('# hp-attributes' div). Hover (function () {clear interval (playlido);}, function () { PlaySlideshow = SetInterval ("slideSwitch ()", 5000);});});
OK I solved this one, the problem was not in the code but in fact The parent had an extra division nested inside the 'Slide' device, the function was closing both of them and causing mayhem.
Cheers
Comments
Post a Comment