how to stop jquery imageslider on mouse hover

后端 未结 4 1157
醉梦人生
醉梦人生 2021-01-16 03:40

this is my website demo : http://daplonline.in/index5.php

i got this jquery from : http://designm.ag/tutorials/image-rotator-css-jquery/

i want to stop slide

4条回答
  •  独厮守ぢ
    2021-01-16 04:35

    you need to clear the interval for image rotation:

    $(function(){
    var stop;
    function rotate(){
     stop = setInterval(change, 1000);
    }
    rotate();
    //Use the event you want to stop image rotation
    $("#ok").click(function(){
     clearInterval(stop);
    });
    });
    

提交回复
热议问题