Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mouse/Cursor X/Y Coordinates within a frameset???

    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

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •