iosslider: How can I stop image sliding getting paused when I put mouse on it

316 views Asked by At

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.

1

There are 1 answers

1
sravis On BEST ANSWER

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
}