|
Posted by BootNic on 10/02/06 21:23
> Glenn Coyle <glenn.newsgroup@virgin.net> wrote:
> news: QT6Ug.49146$wo3.44382@newsfe7-gui.ntli.net
> BootNic wrote:
>>> Glenn Coyle <glenn.newsgroup@virgin.net> wrote:
>>> news: gSOTg.45006$SH2.2952@newsfe4-gui.ntli.net
>>> rwap wrote:
>>>
>>>> Glenn Coyle wrote:
>>>>
>>>>> i have an iframe which shows the background from the site, however
>>>>> in IE 7 it shows the white background, is there any reason for
>>>>> this, it works fine with firefox, is it CSS issue or just the way
>>>>> the browser works?
>>>>> the site is www.thekiwikitchen.co.uk
[snip]
>>> Thanks for your help, this is weired, i have just updated to IE7 and
>>> it works fine, however my client is still seeing the white
>>> background. Is it possible that MS updated IE7.
>>>
>>> this is frustrating.
>>
>> I think the document in the iframe (home.php) needs to have a
>> transparent background, but it seems to me a php include would be
>> the way to go.
>>
> sorry, im not sure how the php include would work in the iframe?
Replace the iframe
<iframe width="590" height="390"
allowtransparency="yes" src="home.php" frameborder=
"0"></iframe>
with
<?php
ob_start();
include ("home.php");
$buf = ob_get_contents();
ob_end_clean();
$buf = preg_split("/([<]body[^>]*>|<\/body>)/", $buf);
print $buf[1];
?>
If you remove everything except the body content of home.php and rename it home.txt
you could use:
<?php include("home.txt"); ?>
inplace of the iframe.
> could i create a transparent gif and add that to the document content
> file?
If you wish to keep the iframe, add background-color:transparent; to mainWindowText class.
Since iframes are abused for adds, I have them disabled, I have to enable iframes to view them.
I am not usually willing to enable them for sites that use them, how many others disable iframes
I don't know.
--
BootNic Monday, October 02, 2006 5:22 PM
"I've noticed that the press tends to be quite accurate, except when
they're writing on a subject I know something about."
*Keith F. Lynch*
Navigation:
[Reply to this message]
|