HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... cursor location
cursor location
  View type:
Does anyone know if there is a way to detect the coordinates of the cursor when an onclick event has been generated? I want to move a small image to the point that has been clicked.

Thanks

Charles
 
The browser window is obviously aware of the cursor location so the information is available.
First problem is that MS disagree with everyone including W3C on the how and the element description and the response returned for a button type press.
Second is that different browsers return different relative positions, either relative to the top of the web page or the browser window.
Hving said that it's all javascript to capture the position but then which of the SIX !!! sets of location data do you need to use.
http://www.quirksmode.org/js/events_properties.html
=====
How does your page work? Do you need exact mouse location or could the page work with a grid of locations?
Subject:
Message options
No additional options