IFRAME HELP

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

IFRAME HELP

Post by John Cartwright »

Does anyone know a way to make an Iframe background translucent so just images and text will be showing up but the rest is clear?
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

I don't believe that can done (there's probably a proprietary MSIE property for it, but I don't discuss those).

What can be done, though, is using a div with overflow: auto instead of an iframe, which is my preferred way to operate.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Insert into <iframe> tag;

<iframe src="page.php" name="iframe" width="300" height="300" scrolling="auto" frameborder="0" allowtransparency="true"></iframe>

Insert into the page in the iframes body section;

<BODY style="background-color:transparent">
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

like I said though, that's an IE-only property.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Maybe he is an IE type of guy. ;)


If not, someone else who searches for this type of thing might find that little tidbit uselful.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

HEHeh thanks a lot guys I am infact NOT a IE type of guy, IE is the DEVIL!!!

Cheers
Post Reply