Created
May 7, 2013 09:08
-
-
Save qborreda/5531310 to your computer and use it in GitHub Desktop.
jQuery Mouse Coordinates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id="spnCursor"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(document).mousemove(function(e){ | |
$('#spnCursor').html("X Axis : " + e.pageX + "<br/> Y Axis : " + e.pageY); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment