Im using a plugin called nivoslider which works fine exept for one thing.
I need the slider to stop when i click on the slider because a window opens and play vimeo.
I need to stop the slider animation because it makes the video halt.
I have added the following code
This added code works fine if it wasnt forCode:slider.mousedown(function(){ vars.paused = true; clearInterval(timer); timer = ''; });
When i remove the slider.hover script the slider animation stops on click as i would for it to do.Code://For pauseOnHover setting if(settings.pauseOnHover){ slider.hover(function(){ vars.paused = true; clearInterval(timer); timer = ''; }, function(){ vars.paused = false; //Restart the timer if(timer == '' && !settings.manualAdvance){ timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime); } }); }
But when if not the slider dosnīt stop - i still would like for the animation to stop on hover/mouseover - but how do i kill the hover event when somebody clicks on the slider so the animation stopps????


Reply With Quote

Bookmarks