How can I show the outline of an area of a map of an image (html, javascript)?

user717236 picture user717236 · Oct 13, 2011 · Viewed 8.9k times · Source

If you take a quick look at the two links below, you'll see most people want to get rid of the outline around the area of a map on an image. I see this occurs on the MAC OS X platform, exclusively.

Removing outline on image map area

How do I get rid of this border outline for my image map areas when clicked (OS X Chrome Only)

However, what I want to do is show the outline in multiple browsers and change it's color and width. I tried but to avail. I created a style for an id. Didn't work. I tried using a class and that didn't work. I set an inline style and that didn't work, either. And I attempted it on both the map and area tags, by the way.

As of now, I use a gif to "border" the area when clicked. But it would make things so much easier if I could take advantage of the built-in shape attribute to highlight the area clicked.

Thank you very much for any help.