how to get the mouse's offset when i mouseover a element..use jquery

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-03-13T01:37:25Z Indexed on 2010/03/13 1:47 UTC
Read the original article Hit count: 303

Filed under:
|

this is my code and have a error:

    $('#map_canvas').mouseover(function(e){
        console.log(e.offset().left+'  '+e.offset().top)
        })

thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery