Domanda

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.

È stato utile?

Soluzione

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
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top