javascript thread: I need to share a Layer between two Frames.
Thank You. This its working to me. But this only work if you are ussing IE,
wich its my case.
-----Original Message-----
From: Brian.Ballentine@m... [mailto:Brian.Ballentine@m...]
Sent: Thursday, March 15, 2001 5:49 AM
To: javascript
Subject: [javascript] Re: I need to share a Layer between two Frames.
I've done this before using IFrames and it is not too hard. Start by
creating a
new page that will serve as your new index page. In it, place 2 IFrames in
the
BODY tag. Set the source of the first IFrame to your old index page. Make
sure
you set the STYLE to something like this {z-index:1; position:static; top:0;
left:0; width:100%; height:100%} Set the source of the second IFrame to the
page
that has your Layer and image in it. Make sure "AllowTransparency" is set to
TRUE and then set the IFrame's STYLE to something like {z-index:0;
position:absolute; top:0; left:0; width:100%; height:100%} Note that the
second
IFrame's z-Index is lower than the first. Give each IFrame an ID and using
JavaScripts you can control when you want the lower or second IFrame to show
up
over the first. I would call the second IFrame something like
ID="glassIFrame"
because that is essentially what it is. A clear layer that you will use to
overlay images but will allow your original frames to show through.
Hope this helps,
Brian
Giuseppe G Turitto <GDelucci@I...> on 03/14/2001 06:04:07 PM
Please respond to "javascript" <javascript@p...>
To: "javascript" <javascript@p...>
cc: (bcc: Brian Ballentine/Picker)
Subject: [javascript] I need to share a Layer between two Frames.
I have a web site wich I use Frames. But I need to display an image qich its
gone take an are biguer than the original Frame. Now when I try to do this
part of the Layer its hide under the other frame. I want to open this layer
and need to be displayed between two frames. Some Ideas. Thank You.