Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var timeoutId;
  2. $('.link').hover(function(){
  3. clearTimeout(timeoutId);
  4. $(".list").fadeIn(500);
  5. }, function(){
  6. timeoutId = setTimeout($.proxy($(".list"), "fadeOut"), 300)
  7. });
  8. $(".list").mouseenter(function(){
  9. clearTimeout(timeoutId);
  10. }).mouseleave(function(){
  11. $(".list").fadeOut(500);
  12. });
Add Comment
Please, Sign In to add comment