Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("selector").on("mouseenter", function() {
- var timerId = setTimeout(yourCallback, 250);
- $(this).data("timerId", timerId);
- }).on("mouseleave", function() {
- var timerId = $(this).data("timerId");
- clearTimeout(timerId);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement