jFlow AutoTimer (and example on Timers in JavaScript and jQuery events)


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var t_on = function() {t_out = setTimeout(t_exe, 5000);}
  2. var t_off = function() {clearTimeout(t_out);}
  3. var t_exe = function() {$('.jFlowNext').click();t_on();}
  4. $("#jFlowSlide").bind("mouseenter", function() {t_off();});
  5. $("#jFlowSlide").bind("mouseleave", function() {t_on();});
  6. t_on();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.