how to see the mouse quardinates of the click
|
| View previous topic :: View next topic |
| Author |
Message |
AmeliaR
Joined: 31 May 2006 Posts: 142
|
| I have a <td onmousedown='moveFunction();'>. Inside movefunction how can I see the mouse quardinates of the click, relative to the <td>? |
| |
|
|
|
|
kadamat
Joined: 01 Jun 2006 Posts: 88
|
| get the absolute position of the mouse, and subtract the offsetTop and offsetLeft of the TD |
| |
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
| Perfect! Thanks |
| |
|
|
|
|