Posted By

conspirator on 02/08/09


Tagged

javascript jquery timeout


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

bryandease
VaiT
umang_nine
acristic


jquery timeout


 / Published in: jQuery
 

then use this... $('.notice').fadeIn().idle(2000).fadeOut('slow');

found on... http://stackoverflow.com/questions/316278/timeout-jquery-effects

  1. (function($){
  2.  
  3. jQuery.fn.idle = function(time)
  4. {
  5. var o = $(this);
  6. o.queue(function()
  7. {
  8. setTimeout(function()
  9. {
  10. o.dequeue();
  11. }, time);
  12. });
  13. };
  14. })(jQuery);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: conspirator on June 14, 2009

setTimeout(function () { $('#thisworkstoo).show(); }, 4000);

You need to login to post a comment.