Friday, January 20, 2012

How to create specific "onclick" areas of image directed to different links?

This is for web development purposes.



I'd like to have a map of a portion of the United States with various icons representing different cities. I would like each icon to be clickable and each icon to direct the user to a different link, depending on the icon clicked. I assume this would be done in javascript, but I'm not sure where to start.



I know this can be done in the Google Maps AVI, so if that's my best option, I'll go with that. But is there any other way, besides Google Maps/Earth, I can just specify that when "x,y" coordinate on the image is clicked, to bring the user to a specific link.



Thanks for your help.How to create specific "onclick" areas of image directed to different links?
Yes, image map is what you need.



http://www.w3schools.com/TAGS/tag_map.as鈥?/a>

No comments:

Post a Comment