Image Map<

liunx

Guest
I want to do something similar of what the National Weather Service did with the image map. The user clicks on the map and then it shows the town that is closest of where the user clicked. How do I do that?

Here is an example that NWS uses (<!-- m --><a class="postlink" href="http://www.crh.noaa.gov/grr/">http://www.crh.noaa.gov/grr/</a><!-- m -->)because they use a image in a form input.

<input type="image" name="map" src=http://www.htmlforums.com/archive/index.php/"/wwamaps/GRR.png" width="354" height="274" border="0" align="middle" alt="Map of Forecast Area">

this will give you coordinates. instead of a values. then you use the coordinates to ge thte area of the map they clicked. not sure how they did it on the other side after they clicked.

so when you click you get this map:x,y

where x and y are numbers representing where they clicked on the image at.
 
Back
Top