Posted By

nerdfiles on 07/26/11


Tagged

jquery hover


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


delay jquery hover


 / Published in: jQuery
 

  1. $('ELEM').hover(function() {
  2. clearTimeout($(this).data('timeout'));
  3. $('ELEM').slideDown('fast');
  4. }, function() {
  5. var t = setTimeout(function() {
  6. $('ELEM').slideUp('fast');
  7. }, 2000);
  8. $(this).data('timeout', t);
  9. });

Report this snippet  

You need to login to post a comment.