To make an iframe transparent (background of the iframe page is visible through the data from the other page), you just need to use 2 additonal code snippets.
1) In the iframe code add ALLOWTRANSPARENCY=TRUE
2) In the content page (the page seen through the iframe), add
<style type="text/css"> body {background-color: transparent} </style>
If you have several pages linked to the same iframe and you want them all to be transparent, you must place the second code on each content page you want to appear in the iframe. You can choose to make only SOME of the pages that appear in the iframe as transparent by not including the 2nd code on all the content pages.
|
Large iframe (534x152) is across the chest of the skeleton on this page. It allows transparency.
<iframe name="largeiframe" src="largeiframe.htm" width="534" height="152" frameborder="0" scrolling="no" ALLOWTRANSPARENCY=TRUE></iframe>
The large iframe window displays another page (largeiframe.htm) when this page loads.
On that page is the second transparency code and two more iframe codes.
TRANSPARENCY CODE to make this page transparent to the iframe it appears in:
<style type="text/css">
body {background-color: transparent}
</style>
|
IFRAME code for the first slideshow on page largeiframe.htm:
<iframe name="flipper1" src="flipper1.htm" width="168" height="143" frameborder="0" scrolling="no"></iframe>
IFRAME code for the second slideshow on page largeiframe.htm:
<iframe name="flipper2" src="flipper2.htm" width="168" height="143" frameborder="0" scrolling="no"></iframe>
Each of those iframes displays a flipping slideshow from another page (flipper1.htm and flipper21.htm). Putting two of the same flipping slideshows on the same page causes a code error. By putting the slideshows into iframes, you avoid that problem and don't have to modify the slideshow code in any way. For instructions to make a flipper slideshow, read this tutorial.
Links can change the content of the large transparent iframe by targeting iframe named largeiframe.
1st portrait (party) rollover link and the absolute text link below it use this code:
<a href="http://www.samisite.com/moreiframes/party2.htm" target="largeiframe">PARTY!</a>
This page (party2.htm) has the 2nd transparency code on it so when it appears in the iframe, the original background skeleton is still visible.
3rd portrait (contact us) rollover link and the relative text link below it use this code:
<a href="contact2.htm" target="largeiframe">CONTACT US!</a>
This page (contact2.htm) does NOT have the 2nd transparency code on it so when it appears in the iframe, the original background is blocked by the new content page.
|