this is my code and have a error:
$('#map_canvas').mouseover(function(e){
console.log(e.offset().left+' '+e.offset().top)
})
thanks
i do this ,and it is always log (0, 0):
$('#map_canvas').mouseover(function(e){
var offset = $('#map_canvas').offset();
console.log(offset.top+' '+offset.left); //offset of 'realtiveDiv'
console.log(e.pageX +' '+e.pageY); // mouse position absolute
})
why?
thanks