I used this code, but it's well only for Y-coordinate
$('div').mousemove(function(e){
var x = Math.floor(e.pageX - $(this).offset().left);
var y = Math.floor(e.pageY - $(this).offset().top);
$('.status').html(x+' '+y);
});
X-coordinate show me wrong values.