954,123 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

iframe background color - pls help

need your help please

how to add bgcolor to iframe?

here my code

max05
Newbie Poster
11 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Try this;

If the black background doesn't work in iframe then I suggest you put bgcolor="#000000" in view_ad.php. It'll work.

Tribolis
Newbie Poster
23 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Thanks

it work for firefox but not IE.
any more ideas?

max05
Newbie Poster
11 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

In the 'view_ad.php' file you are calling into the IFRAME, you need to define the background color. You can do this a myriad, perhaps the easiest would be to ensure that the body tag has a BG Color tied to it. Ideally you would use CSS to make this happen. Regardless simplest way would be to add the following to 'view_ad.php':

<body bgcolor="#000000">

However, CSS SHOULD be used, but this will let you know if it's going to be the fix. Let us know what happens.

iammatt
Newbie Poster
8 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

i don't have control to make change the "view_ad.php"

do you how to use transparency?

thanks for the help

max05
Newbie Poster
11 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Yes you have control to make the change view_ad.php? - Open view_ad.php and put bgcolor we explained to you already. Or find the file where you can put bgcolor, look at the path filenames inside the view_ad.php

If you still have problem, I suggest you post at phpadsnew forum.

transparency is background-color: transparent" or you need javascript transparent but no needed.

Tribolis
Newbie Poster
23 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Hi.

Like others before me said, u have to add the followin code into your PHP file, is the only way yo make it work.Styles in Iframe don't work in Internet Explorer, even in version 7. Transparency isn't an optioon.
So, in php file, put this:
?>

<?php
You have to close the <?PHP before you put the HTML command and reopen it for the rest of the script.You may also put it at the enc, after ?> (I tryed just the first option and it works like a charm in any Internet explorer).
See ya.

NKVader
Newbie Poster
1 post since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

@mr sup HI IT work!!! but i need that bg color change automatically, without THE BUTTON. I TRIED WITH CSS STYLE BUT IT DOESN'T WORK IN IE

chiara_ads
Newbie Poster
1 post since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You