Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Script Menu over an Iframe in older browers

Status
Not open for further replies.

uncLez

Programmer
Jun 18, 2002
38
0
0
NL
Hi all,
I have a drop-down menu in Javascript which SHOULD work for loads of browers, BUT...

In Versions of IE older than 5.5 and in Netscape versions, the menu falls BEHIND an iframe I use, in IE 5.5 and 6 it shows up the right way...

Is there a way to force the divs to show up over the iframe instead of falling behind it in the older browsers?

Thanx in advance,
Anton de Wit.
 
add to the iframe:

style="z-index:0;"

and to the popup div:

style="z-index:2;"

Don't know how early the browsers started supporting this, but it should work in most browsers.

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
as of IE5.5 you can z-index over a window, this is acheived by giving the window (frame, iframe) a z-index lower than that of the object you want above it. You cannot do this in previous version of IE (5 and below or netscape)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top