Advertisement
Guest User

rakodil

a guest
Sep 16th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x,y;
  2.  
  3. document.onmouseover= function(e){
  4.     e = e || window.event;
  5.     x = e.clientX;
  6.     y = e.clientY;
  7. };
  8.  
  9. function elementAtMousePosition() {
  10.     return document.elementFromPoint(x,y);    
  11. };
  12.  
  13. elementAtMousePosition().style.display = "none";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement