Map boxes show up sometimes...

I have an image map which behaves strangely... It's a very simple map with three rectangle that do not intersect. They work fine and react normally to clicks.

The strange thing about them is that sometimes the area shows up as a dotted rectangle when I click on them. Once the dotted rectangle shows up on one of the areas, then all areas on the map will have their rectangles show up when clicking...

The only thing these rectangles do is that they change the background colour of a DIV tag...

Any ideas why these areas show up (and only some of the time)?

-- Bubba
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Each area can recieve focus seperately -- that is why the dotted square shows up.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can try this:

<AREA ... onfocus="this.blur();">

but I'm not sure how that might affect the clicks
bganoushAuthor Commented:


You're using that old calling the javascript blur() method from the onfocus trick!!!  Good call!

-- Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.