transparent IFRAME ?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

transparent IFRAME ?

Post by toms100 »

basically i have my site:
http://arp.evilmonkeh.co.uk/ (for bfclan)
and in the middle it has news
now i want to put an IFRAME in there, but make it so that the text moves over the current background (the helicopter) so it still looks all nice....
is this possible?

i would appreciate some help;)

cheers

Tom
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

add this property to the Iframe: style="background-color: transparent"
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

That will only work in IE.
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

And now that I've looked at the page, why not just make a static background image for that section that's already faded down? That's how we did it in the olden days, and it still works.

Finally, consider using a DIV with overflow: auto instead of an iframe.
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

Post by toms100 »

Unipus wrote:And now that I've looked at the page, why not just make a static background image for that section that's already faded down? That's how we did it in the olden days, and it still works.

Finally, consider using a DIV with overflow: auto instead of an iframe.
how does one create a static background image?
thx loads for help so far :)

Tom
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Well just crop the background you have there down to exactly the area that the table will take up, and then set it as the background to that particular table or div. Do it that way and you should be able to bring down file size a bit, too... although it takes a bit more planning to get all of your images to line up just right, if you need precision.
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

for static backgrounds I always use a div with an image in it. The div's z-index is 0 and all other divs are z-index above 0.

//cybaf
Post Reply