Background Image Help Pls

SpaceshipSpaceship
Watch

proudcdn

Established Member
Impact
1
Hello All,

I have a main web page (index.htm) with an inline frame (iframe).

When you click on the menu (index.htm) it loads all subsequent pages within the iframe.

Ok so I want the background image from the main page (index.htm) to show through whatever is loaded in the iframe.

I have tried creating the other pages with no background but it defaults to white.

I have tried making the background for the other pages a 10px by 10px blank gif or png that tiles. It defaults to white.

Is there some way to make a transparent background?

OR

Is there a way to have the index.htm background be persistant?

Thank you in advance for the words of wisdom :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Well obviously a frame can't have a transparent background. If the iFrame is in a fixed/absolute position then you should be able to cut the background image up and put half of the image on the main page and half in the iFrame.

Otherwise, if it's possible you could remove the frame and use PHP/ASP include or use a scrolling div.
 
0
•••
i agree, use a div and php include.
 
0
•••
I am new to PHP

How exactly would I do this?
 
0
•••
0
•••
Actualy in IE5.5+ and NS6+ Iframes can be transparent.

First code your page that will be the Iframe being sourced, (SRC="<fileName.html>), put the style code below in between the head tags like so:

<style type="text/css">
body {background-color: transparent}
</style>

Then on the page where you call the iframe add the below code:

<IFRAME NAME="Something" SRC="fileName.html" allowtransparency="true" background-color="transparent" >
</IFRAME>
 
0
•••
WiredEyes said:
Actualy in IE5.5+ and NS6+ Iframes can be transparent.
How many people use those browsers?
 
0
•••
umm about 95% probably, (it also probably includes Mozilla as well although someone might want to test it)

Anyway the point is that it CAN be done so you should maybe check your facts first before posting false info.
 
0
•••
WiredEyes said:
umm about 95% probably, (it also probably includes Mozilla as well although someone might want to test it)

Anyway the point is that it CAN be done so you should maybe check your facts first before posting false info.
Oh right, didn't notice the +'s. :red:

Anyway, I haven't heard of it before.

Edit: Seems to work in Firefox.
 
Last edited:
0
•••
I appreciate all the help.

I suppose I should have worded my original question;

"Can this be done ..." and "Is this the best way of achieving my goal"
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back