PDA

View Full Version : accessing cursor location


mdo4
02-05-2003, 07:05 PM
Hello All:

Is there a property out there that will return to me the x and y coordinate of the cursor on the screen?


-Mike

Jon Hanlon
02-05-2003, 08:20 PM
Cursor? or Mouse Pointer?

mdo4
02-05-2003, 08:23 PM
I'm interested in the mouse pointer, I have a left flyout nav that sticks when a user moves the mouse to the very very left of the browser. I wanted to detect in an onMouseOver event when the x axis of the mouse cursor hits like 2 or 3 pixels in, then hide the nav...

-Mike

Jon Hanlon
02-05-2003, 08:36 PM
It's a bit tricky as Microsoft and Netscape have completely different event objects.
Here's information on Microsoft's:
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_event.asp

mdo4
02-06-2003, 11:22 AM
Thanks for the info Jon,

I suppose using an image map wouldn't be a bad tact either....?