web-profile

jQuery mouse position

Test code:

$('body').mousemove(function(e){
    $('.log').html("mouse position: x=" + e.pageX + "; y=" + e.pageY);
});

Leave a Reply

Your email address will not be published.