-
x,y coordinates in an image?
i need to display a map in a web page and recognize where the mouse give a click to obtain its position and then execute an event when this happens, is there any example to learn from it?
thanks a lot,
matt.
-
-
within a form,
<input type="image" src="....jpg" name="imgname">
That, when clicked, will act like a "submit" button.
It will also send, along with the form values, imgname_x and imgname_y, values representing where it was clicked, where 0,0 is the top left corner.
This would work well with php, etc.
Not sure exactly how it works with javascript without submitting. I have seen it done, though, so I think there's a way.... just gotta adapt it to work in realtime.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks