View Single Post
Old 07-28-2005, 12:19 AM   #1 (permalink)
Fragalot
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,447
Rep Power: 9 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
making .png transparent in IE

add this to your style.css file attached to your website.

Code:
 #pngIE	{				 
fillter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=image.png); 
					background-repeat:no-repeat; 
					} 
 
#pngFF{				 
					background-image:url(image.png); 
					background-repeat:no-repeat; 
					}


put this code where you want to have that image.
Quote:
<?php

$browser = $_SERVER['HTTP_USER_AGENT'];
$version = explode(" ",$browser);

if($version[2] == "MSIE"){
echo 'pngIE';
}
else{
echo 'pngFF';
}

?>
now edit the parts i've marked red.
and remove the parts i've marked yellow. (damn BBC )

this way you can make .png images transparent in IE.
(fun to fix bugs of those HUGE purely commercial companies )

Last edited by Fragalot; 07-10-2006 at 03:22 AM.
Fragalot is offline   Reply With Quote