943,982 Members | Top Members by Rank

Ad:
Apr 22nd, 2006
0

iframe background color - pls help

Expand Post »
need your help please

how to add bgcolor to iframe?

here my code
<IFRAME scrolling=no SRC="http://adplex.biz/ad/view_ad.php" NAME="Ad" frameborder="0"></IFRAME>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
max05 is offline Offline
11 posts
since Aug 2005
Apr 22nd, 2006
0

Re: iframe background color - pls help

Try this;
<IFRAME scrolling=no SRC="http://adplex.biz/ad/view_ad.php" NAME="Ad" frameborder="0" style="background-color: #000000"></IFRAME>

If the black background doesn't work in iframe then I suggest you put bgcolor="#000000" in view_ad.php. It'll work.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tribolis is offline Offline
21 posts
since Apr 2006
Apr 22nd, 2006
0

Re: iframe background color - pls help

Thanks

it work for firefox but not IE.
any more ideas?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
max05 is offline Offline
11 posts
since Aug 2005
Apr 26th, 2006
0

Re: iframe background color - pls help

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':
HTML and CSS Syntax (Toggle Plain Text)
  1. <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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iammatt is offline Offline
8 posts
since Apr 2006
Apr 26th, 2006
0

Re: iframe background color - pls help

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

do you how to use transparency?

thanks for the help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
max05 is offline Offline
11 posts
since Aug 2005
Apr 27th, 2006
0

Re: iframe background color - pls help

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tribolis is offline Offline
21 posts
since Apr 2006
Jul 29th, 2007
0

Re: iframe background color - pls help

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:
?>
<body bgcolor="#000000">
<?php
You have to close the <?PHP before you put the HTML command <body> 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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
NKVader is offline Offline
1 posts
since Jul 2007
Mar 2nd, 2011
0
Re: iframe background color - pls help
@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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chiara_ads is offline Offline
1 posts
since Mar 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: HTMl 5 date picker
Next Thread in HTML and CSS Forum Timeline: web design using html to create a loggin and also forums page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC