Created
January 11, 2014 17:26
-
-
Save wotupset/8373884 to your computer and use it in GitHub Desktop.
jquery mousemove
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="Robots" contect="noindex,follow"> | |
<META http-equiv="Content-Script-Type" content="text/javascript"> | |
<META http-equiv="Content-Style-Type" content="text/css"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
$(document).mousemove(function(event) { | |
//alert(event.pageX); | |
document.getElementById("rain").innerHTML =event.pageX+","+event.pageY; | |
}); | |
</script> | |
</head> | |
<body> | |
<h2 id="rain">0 , 0</h2> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment