...

View Full Version : Mouse Coordinates



snowman
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?

A1ien51
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

<html>
<head>
<script>
function MouseLoc(X){
MouseLocated=X;
//1==In the Window
//2==Out of Window
}
</script>
</head>
<body onmouseover="MouseLoc(1)" onmouseout="MouseLoc(0)">
</body>
</html>

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum