View Full Version : Mouse/Cursor X/Y Coordinates within a frameset???

07-03-2007, 04:42 PM
I have found many scripts and implimented a solution for finding the x & y coordinates based on the mouse position, both on moving the mouse and also on clicking. However, I have a somewhat unique situation where I'm using a frameset. So, the x & y cords returned are relative to the document, which is in the frameset, so, in essence, my "grid" resets to 0 & 0 at the top left of every frame. What I need is a way of finding the x & y coordinates when I click in a frame relative to the frameset as a whole, not the document that resides in the frameset. Is this possible? If so, would you care to share some code and explination please ... I'm up against a deadline and loosing hair on this one :(

07-03-2007, 09:14 PM
Nevermind, all I needed was the difference between the onMouseDown x coord and the onMouseUp x coord in order to calculate the difference, so I decided to simply use the screenX property.