IFrames and IE5

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
bracken
Beginner
Beginner
Posts: 1
Joined: Fri Aug 20, 2004 12:30 am
Location: New Zealand

IFrames and IE5

Post by bracken »

Hi, I have a webpage that has the milonic menu in the top section of the page then followed by an iframe that the content is displayed in. It works fine in later versions of IE but in IE5 the menu seems to be under the IFrame i tried playing with z-index but no luck there does anyone have any suggestions.
Leeson
Advanced
Advanced
Posts: 19
Joined: Tue Aug 10, 2004 12:23 pm

Post by Leeson »

This seems to be a common problem and is caused by that, in IE5, iframes are always on top, regardless of z-index. What to do is either re-design, so that iframe and menu does not overlap, or do as I did.

You make an iframe ("hidden", 1x1px at bottom of page) and load the content of the frame into a div, which you place where the iframe used to be. I used a script from http://www.dyn-web.com, but i am sure you can google for others. This seems to work nicely for all browsers. I am quite new to the whole webdesign area, so my code might be a bit "ugly", but it works.

our url is http://www.mednut.ki.se/research/mmc
Post Reply