Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: position of the mouse cursor


Message #1 by Terrence Joubert <Terrence@v...> on Mon, 12 Nov 2001 14:23:33 +0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C16B73.34753B56
Content-Type: text/plain;
	charset="iso-8859-1"

 
Terry,
 
The technique you are looking for is a pair of  JavaScript properties,
event.clientX and event.clientY
These return the mouse position in pixels
 
I can't remember if the position is relative to the browser window (I assume
it is) or the whole screen but a bit of trial and error should sort this one
out.
 
Hope this helps
 
Russell
 

-----Original Message-----
From: Terrence Joubert [mailto:Terrence@v...]
Sent: 12 November 2001 10:24
To: JavaScript HowTo
Subject: [javascript_howto] position of the mouse cursor




Hi Folks, 

Any idea about how I can obtain the x-cordinate of the position of the mouse
cursor when a link (<A HREF='...'> </A> ) is clicked ? 

Thanks 
Terry 

russell.peto@i...
$subst('Email.Unsub')



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001
 


  Return to Index