var i = 0; var intervalFunction = function () { $("#slider").find("#gallery").find("a").find("img").attr("src", arrLinks[i++].image); } var intervalID = window.setInterval(intervalFunction, 2000); $("#slider").find("#gallery").find("a").find("img").mouseover(function () { window.clearInterval(intervalID); }); $("#slider").find("#gallery").find("a").find("img").mouseleave(function () { intervalID = window.setInterval(intervalFunction, 2000); });
Tuesday, January 15, 2013
Pouse Resume Jquery Function
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment