View Full Version : Mouse Coordinates

07-04-2002, 01:02 AM
I have looked all over, and found plenty of scripts that tell you the mouse coordinates while your cursor is in the window. But what I really want, is a script that tells me the mouse coordinates whether the cursor is in the window or not. Any one know if this is possible?

07-04-2002, 06:14 AM
you can just do something like this....It will set a variable which you could check for in whatever you are doing

function MouseLoc(X){
//1==In the Window
//2==Out of Window
<body onmouseover="MouseLoc(1)" onmouseout="MouseLoc(0)">

07-04-2002, 06:37 AM
Thanks A1ien51, that did the trick. :D