Question

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.

Était-ce utile?

La solution

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
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top