Computing.Net > Forums > Web Development > bg color of iFrame

bg color of iFrame

Reply to Message Icon

Original Message
Name: nick1
Date: May 7, 2004 at 12:28:01 Pacific
Subject: bg color of iFrame
OS: winxp pro
CPU/Ram: intel
Comment:

Greetings,

how do i change the background color of an iFrame?!

here is my iFrame code:

<iframe src="C:\Third_Party_Apps\MH PACS Web\message.txt" name="iframe" width="600" height="200" align="center" scrolling="yes" marginheight="0" marginwidth="0" frameborder="1"></iframe>

Thank you for your time,

Nick


Report Offensive Message For Removal

Response Number 1
Name: safeTsurfa
Date: May 7, 2004 at 14:38:37 Pacific
Subject: bg color of iFrame
Reply: (edit)

Have you tried including bgcolor= inside the opening tag?


Report Offensive Follow Up For Removal

Response Number 2
Name: SN
Date: May 7, 2004 at 16:30:55 Pacific
Subject: bg color of iFrame
Reply: (edit)

I wouldn't bet that would work...An Iframe is just that...An inline frame of another document that has its own background color. If you want to change it, change the bgcolor of C:\Third_Party_Apps\MH PACS Web\message.txt.

Luck
-SN


Report Offensive Follow Up For Removal

Response Number 3
Name: Jamie_McCoy
Date: May 7, 2004 at 16:32:33 Pacific
Subject: bg color of iFrame
Reply: (edit)

Report Offensive Follow Up For Removal

Response Number 4
Name: -Bryan-
Date: May 7, 2004 at 16:44:13 Pacific
Subject: bg color of iFrame
Reply: (edit)

Your problem is that you are displaying a text file in the iframe. If you display another html file in the iframe, just change the background color of that html file. That "shouldn't" affect your main page.

I've done just that on a site quite some time ago. If I can locate the code for you, I will.



Report Offensive Follow Up For Removal

Response Number 5
Name: Jamie_McCoy
Date: May 8, 2004 at 07:36:00 Pacific
Subject: bg color of iFrame
Reply: (edit)

if u can locate the code?

maybe your on bout somethin else but its just

bgcolor="#FF0000"

or wot ever color u want

Regards, Jamie McCoy


Report Offensive Follow Up For Removal


Response Number 6
Name: -Bryan-
Date: May 8, 2004 at 11:22:15 Pacific
Subject: bg color of iFrame
Reply: (edit)

ROFL!!!

Jamie, I know how to change the background color (and so should he). I was going to send him the code for the entire page, just for the heck of it.


Report Offensive Follow Up For Removal

Response Number 7
Name: Jamie_McCoy
Date: May 8, 2004 at 17:04:30 Pacific
Subject: bg color of iFrame
Reply: (edit)

ooo sh*t soz mate :P

Regards, Jamie McCoy


Report Offensive Follow Up For Removal

Response Number 8
Name: -Bryan-
Date: May 9, 2004 at 01:47:50 Pacific
Subject: bg color of iFrame
Reply: (edit)

LOL!

-=Bryan=-


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: bg color of iFrame

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software