Bluepearl Design
Go Back   Bluepearl Design > Misc > Tutorials > PHP & MySQL

making .png transparent in IE

PHP 4 & 5 Hypertext Preprocessor
MySQL multi-user, SQL (Structured Query Language) Database Management System

    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 07-28-2005, 12:19 AM   #1 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,436
Images: 1
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-28-2005, 11:43 AM   #2 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,907
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: making .png transparent in IE

If this works then this is a good addition dude

Send us a link of it working in action
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-28-2005, 09:58 PM   #3 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,436
Images: 1
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
Re: making .png transparent in IE

eh,... xD
will do, first gotta find time to do it, busy busy busy, working on an CMS,
i might use it in there,
it should work normally.
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: making .png transparent in IE
Thread Thread Starter Forum Replies Last Post
Making your own Brushe's Watcher Adobe Photoshop 2 11-27-2005 06:28 PM
Making Your Buttons Flicker When Pressed SpawnDemon HTML, XHTML, Javascript, CSS 4 11-12-2005 12:43 PM
tutorial site in the making Fragalot Web Sites 4 11-07-2005 01:30 AM
Still struggling with making skins autumn whispers2me Need Help? 3 07-03-2005 02:46 PM
starting sig making. luckyshot 01 Signatures 11 06-15-2004 04:28 AM


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 09:55 PM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52