So i have this code :
$(document).ready(function(){
$("#slideshow > div:gt(0)").hide();
setInterval(function() {
$("#slideshow > div:first")
.fadeOut(1000)
.next()
.fadeIn(1000)
.end()
.appendTo("#slideshow");
}, 3000);
});
that works 100% fine..
where do i add the .hover() function for the slideshow to pause on hover??
Methods setInterval() returns a intervalID that you can use to clear the current interval/timeout using clearInterval().
You can do something like this:
DEMO