i'm looking for a script that is cross browser compatible to get the mouse location when the mouse is moved over a link.
this is my current code however it doesn't work in IE and i'm not really sure what i'm doing.
Link
var mouseX = event.clientX;
var mouseY = event.clientY;
thanks for the help
2007-03-19
16:41:04
·
2 answers
·
asked by
Brady
3
in
Computers & Internet
➔ Programming & Design
The error i'm getting is 'event' is undefined... do i need to pass it or initialize it in any way?
2007-03-19
16:58:00 ·
update #1
okay i'm sorry.. ignore the above... i have isolated the error and probably should start a different question.. but here is my problem. There is no pageX or pageY in IE, so how do i get the coords of the mouse relative to the whole page not just the visible window?
2007-03-19
17:04:28 ·
update #2
wonderful link!.. thank you both for the help. i'll choose you as best in a couple hours when i can
2007-03-19
17:58:27 ·
update #3