$(document).ready(function () {
$('#block').mousemove(function (e) {
var xPos = e.pageX - $(this).position().left;
var yPos = e.pageY - $(this).position().top;
$( ".log" ).text( "parentX: " + xPos + ", pageY: " + yPos );
});
});