Click to See Complete Forum and Search --> : Image map link borders in IE


Wart_Hog
11-05-2004, 06:46 PM
Hello,

I am currently designing a framed site for a friend who is an artist.
The site is not currently on the web so I will do my best to describe it:

There is a frame along the top edge of the screen that act as a navagation bar called "navbar".
There is a frame along the left side of the the screen named "sidebar".
The last frame is the "main" frame. This is where most of the content is rendered.


I am using an image map in the navbar to open links in both the side bar and the main frame. The site functions fine, the only problem is that when viewed in IE, a small blue box is left around the active part of the image.

The only way that I have found to fix this is to use javaScript inside of an "a href" tag (the javaScript will open the new frame page in "main" and the href will reload the current frame "navbar"). I am reluctant to use this for all the navbar links because I do not want the navbar to be flashing whenever someone clicks on a link.

...please help.

Thank you.

Fang
11-06-2004, 02:31 AM
Try:
<area shape="circle" coords="50,150,50" href="loadPage.html" onclick="frameLoader();focus(0);return false;" ...

Wart_Hog
11-06-2004, 04:23 AM
Thanks for the quick reply Fang.

I didn't have any luck with the code though. I think I'm just gonna scrap the image map. It's not really needed for this application, I just thought that it might save me some time.
Thanks again

Wart_Hog
11-13-2004, 05:37 AM
Fang,
Instead of just getting rid of the image map, I thought that I should try to find a fix for this problem and the script that you posted set me in the right direction. I'm kinda thankful that it didn't work, otherwise I really wouldn't have learned anything.

The fix I found is:

<area shape="rect" coords="107,27,185,45" href="01gallery2/00gallery2.html" target="sidebar" onClick="blur()">

Wart_Hog
11-13-2004, 05:42 AM
This works well in IE & Safari, but when used in Firefox, strange things begin to happen. I think the code causes the whole browser window to loose focus thus enlarging browser windows that have previously been minimized?

I wonder why this is?
Do you know?