Catching MouseClick events

J

jediknight

Hi,

I have a webpage to which I have been able to draw an image as a
background and with some icons positioned in several places. The image
is a map of the local area and the icons represent certain places in
the map. I have drawn the icons using the drawimage method but was
wondering how I could be able to detect when the user clicks on an icon
in the map. I need this so I can show a popup with some information
about the place the user has clicked.

Thanks
 
R

ReyN

H

Hans Kesting

Hi,
I have a webpage to which I have been able to draw an image as a
background and with some icons positioned in several places. The image
is a map of the local area and the icons represent certain places in
the map. I have drawn the icons using the drawimage method but was
wondering how I could be able to detect when the user clicks on an icon
in the map. I need this so I can show a popup with some information
about the place the user has clicked.

Thanks

I think you need to use an imagemap.

http://msdn.microsoft.com/library/d.../author/dhtml/reference/properties/usemap.asp

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top