The following function triggers some slides to move automatically.
function featloop(eq){
if(eq == $('.featuredslider a').length) { return false }
else {
$(".featuredslider a").mouseleave();
$('.featuredslider a:eq(' + eq + ')').mouseenter();
var next = eq + 1;
window.setTimeout(function(){featloop(next);}, 3000);
}
}
However if the user happens to trigger the mouse enter function as well then this automatic function needs to stop, an interval needs to be triggered so that if the user executed mouseleave() then the automatic function starts from the beginning again in 8000 ms. Is that possible, and how.
do you mean somethink like: