Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coordinates When Clicking On An Image

Status
Not open for further replies.

Toyman

Programmer
Jun 19, 2001
68
GB
Hi

How would I get the coordinates of the mouse when I click on an Image within the <IMG> tag.

Thanks
Toyman
 
If you name your image, then serverside you can
request(&quot;name.x&quot;) for the x coordinate or
request(&quot;name.y&quot;) for the y coordinate.

hth,
Corey
 
Thanks Corey for the reply, but I can't get it to work.
This is my code...what Am I doing wrong ?

<IMG NAME=&quot;THEMAP&quot; SRC=&quot;samapii.gif&quot; width=&quot;445&quot; height=&quot;400&quot; USEMAP=&quot;#SAMAP&quot; OnClick Response.Write Request(&quot;THEMAP.X&quot;)>

Carel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top