PDA

View Full Version : force iframe to top


thunder
10-26-2002, 02:11 PM
Does any one here know of any codes that can force an iframe to stay ontop of everything else on the page, including flash objects?
I want to control the top layer just like http://www.orange.co.uk where they have dhtml menus over flash. If you look at the source code they are using java to make this happen.

Jerome
10-27-2002, 07:43 AM
Hi,

Did You try this:

Put this in the header and change the values to Your own idea
% can be changed in px to if You like.

<STYLE>
#A{
position:absolute;
top:1%;
left:25%;
height:50 px;
width:50 px;
background:#000000 url(something.gif);
border:1px solid red;
}
</STYLE>

Put this at the bottom of Your page, e.g. just before </BODY>

<DIV ID="A"><IFRAME></IFRAME><DIV>

Jerome