Assuming .cycle('prev')
does not unpause the carousel. If it does you will need to pause it again after every .prev
call and on the mouse leave function.
Try something like:
var intervalVar;
$('#prev').hover(function () {
//mouse enter - Resume the slideshow
intervalVar = setInterval(function(){
$('.cycle-slideshow').cycle('prev');
},1000);
}, function () {
//mouse leave - Pause the slideshow
clearInterval(intervalVar);
});
This assumes that you cycle every 1 second.. You would change the 1000
to match however many milliseconds your carousel is set to transition.