FAQ
 
Products Showcase Download Store Support
Home :: Support :: Community :: CourseLab Issues

cursor location

cursor location 
Author:  Charles    
Date: 15.12.2011 20:08:39
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  
...
Re: (1) cursor location 
Author:  nickj    
Date: 19.12.2011 17:03:11
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?  
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: