jQuery - get mouse position


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var mouseX = 0;
  2. var mouseY = 0;
  3. $().mousemove( function(e) {
  4. mouseX = e.pageX;
  5. mouseY = e.pageY;
  6. });

URL: http://www.lupaworld.com/89596/viewspace_32961.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.