How to implement different clickable Area on an image-page through image map?

How best to code a client-side image map with rollovers?

  • What's the best way to do a client-side image map w/added rollover goodness? I want to add a clickable world map to my blog. The map is divvied up into 12 regions (North America, South America, etc.) which I want to each light up when rolled over. I've got the map w/rollovers done in Photoshop; what's the best way to implement this on my website? Some sort of HTML/CSS magic?

  • Answer:

    My mistake; that was the example, not the article. The article is located http://www.alistapart.com/articles/imagemap/.

docgonzo at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

Not magic, just absolutely positioned display:block links! More information at this http://www.alistapart.com/d/imagemap/example2.html.

charmston

Charmston, that's a clever way of doing it. Much cleaner than the old way of stiching the images together in a table. :-p

arrhn

Not only is it more clever, but it is also standards-compliant, completely accessible (in devices such as screen-readers used by deaf people, cell-phone browsers, and even old versions of modern browsers), and it handles the rollovers without the use of any scripting language such as javascript!

charmston

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.