clear interval on hover Jquery

201 Views Asked by At

I would like to pause my slider on mouse hover and for that I need to clear the interval. The interval is controlled by my wordpress theme. website here http://blog.vishopper.com/

if($('#zSlider').length != 0){

$('#zSlider').carousel({interval: parseInt(zAlive_i18n.slider_pause_time) }).bind('slid',function(){

$('#zSlider .description li.active').removeClass('active');

$('#zSlider .description li:eq(' + $('#zSlider .carousel-inner .active').index('#zSlider .carousel-inner .item') + ')').addClass('active');

});

it used to pause on hover by default but that functionality has broken.

0

There are 0 best solutions below