Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hideDelayTimer=null;
- var hideDelay=100;
- label.addEventListener("mouseover",function()
- {
- if(hideDelayTimer)clearTimeout(hideDelayTimer);
- alert('mouseover');
- label.appendChild(popup);
- });
- label.addEventListener("mouseout",function()
- {
- alert('mouseout');
- if(hideDelayTimer)clearTimeout(hideDelayTimer);
- hideDelayTimer=setTimeout(function()
- {
- hideDelayTimer=null;
- label.removeChild(popup);
- },hideDelay);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement