Forum Moderators: open

Message Too Old, No Replies

mouse events on img

is it possible?

         

NCAnnie

12:27 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



I have a (geographical) map which has been generated as a jpeg and sent to my page using php. I display it as
<img src = "testimage.php" >
I would like to grab lats and longs (using javascript)as I pass the mouse over or click on the image. I can do the maths required, but how to get the event?

Alternative Future

12:36 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

An imagemap might do what you are after! <img src="" usemap="">

Do a google for imagemaps you can either use them client or server side.

This example might assist you further ht*p://weblogz.com/cropper/test_ee.html using the windows event.

-George

NCAnnie

1:20 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



George, you are saving me hours and hours...
The example was perfect, I adjusted it to my purposes
Thanks!
NCAnnie