I did some research and came up with this using jQuery:
Code:
$(document).ready(function() {
$("html").mousemove(
function(e){
alert("The Y-position is:"+e.pageY+".");
});
});
so the above is pretty annoying, but it was a test to see if i could get the mouseMove working...
And since that worked fine, I tried to set the mouse' y-coordinate or location as the value for the top css attribute for #verticalLocation as instructed above:
Code:
$(document).ready(function() {
$("html").mousemove(
function(e){
$("#verticalLocation").css("top",e.pageY);
});
});
However, the above does not work...
What do you all think of my code is it good? But before making it cleaner and faster, does anyone have any ideas why it is not working?
+Team1504
Bookmarks