Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

USING IFRAME TO CHANGE A BACKGROUND

Status
Not open for further replies.

catgirl

Programmer
Jan 3, 2001
13
0
0
US
Hi,

I'm new to HTML. I am writing an ASP application with VBscript. I want to pull a file from a remote drive and display it with a greenbar background(which I have created). I am able to pull the file using IFRAME, but I am not sure how to use the background I want to use. Any solutions or comments would be appreciated.

 
Without a piece of code it's hard to tell you what you are doing right or wrong. I mean, I can't figure out what you exactly want to know.

Usually you put your background in your body like:
<BODY background=&quot;yourimage.jpg&quot;>

But I can tell you that IFRAME doesn't work in NN, so beware.

So send a part of your code if you want to know more. There are a lot of experienced people here!

Erik
 
I can help if you submit your code.

BTW, iframe will work in NN6!
 
Hi Guys,

I have the problem solved. Thanks for your links and your help;-)

Here is what I did.

<script for=name event=onload>
document.frames(&quot;name&quot;).document.body.background='bg.bmp';
</script>


if you just want to change the background to a color then

<script for=name event=onload>
document.frames(&quot;name&quot;).document.body.style.backgroundColor='Red';
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top