Posted By

LuckyShot on 10/27/09


events timer bind jflow autotimer

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


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

 / Published in: JavaScript

  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  

You need to login to post a comment.