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
slider.mousedown(function(){
vars.paused = true;
clearInterval(timer);
timer = '';
});
This added code works fine if it wasnt for
//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);
}
});
}
When i remove the slider.hover script the slider animation stops on click as i would for it to do.
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???