문제

How can I stop image sliding getting paused when I put mouse on it. I want it to be continue running though I put mouse on any image.

Please help.

도움이 되었습니까?

해결책

Just a kickstart idea..

var paused = false;
$("#slidercontainer").hover(function() {
    var paused = true;
}, function() {
    var paused = false;
});

Write your sliding code below, with setInterval or what ever you wish

if(paused === false) {
 // keep your slide running
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top