Old 25-08-2005, 11:21   #1 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: Liverpool, UK
Posts: 1,963
transparent pngs in IE

Hi,

I'm trying to display transparent pngs in IE - ive tried the javascript fix, ive tried the CSS fix, ive tried the DHTML fix - all of them work

BUT

While the page is loading one of the above solutions the images remain grey until the script is executed. I read somewhere that you can edit pngs in a graphics program so that the code itself to make the pngs work in IE is contained within the graphic, but I cant find the information again (forgot to bookmark it!)

any help would be appreciated

Scott
  Reply With Quote
Old 25-08-2005, 11:44   #2 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,573
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
only used the alpha image filter in a IE-only css file. it always worked...

something like this
Quote:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="assets/ieStyleCorrect.css"/>
<![endif]-->

Quote:
/* CSS Document */

a#logo {
background-image: none;
filter:
progidXImageTransform.Microsoft.AlphaImageLoader (src=images/logo.png,
sizingMethod='scale'
cursor:hand;
}
  Reply With Quote
Old 25-08-2005, 11:56   #3 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: Liverpool, UK
Posts: 1,963
do you have a working example of this? i'm pretty sure it would still make the image flash with the grey area before showing it as being transparent
  Reply With Quote
Old 25-08-2005, 11:57   #4 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,573
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
check your PM
Sorry I can't post a direct link
  Reply With Quote
Old 25-08-2005, 12:25   #5 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: Liverpool, UK
Posts: 1,963
thanks for that, will give it a try
  Reply With Quote
Old 25-08-2005, 21:20   #6 (permalink)
skyrocket
SkyRocket Design
 
skyrocket's Avatar
 
Join Date: Aug 2005
Location: Chichester
Posts: 536
Quote:
Originally Posted by stealthcow
I read somewhere that you can edit pngs in a graphics program so that the code itself to make the pngs work in IE is contained within the graphic

Take it into Photoshop & try exporting as an 8 bit PNG. We had success with this method.
  Reply With Quote
Old 26-08-2005, 05:24   #7 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,650
8 bit png's don't support full transparency though do they. Aren't they one colour transparency like gifs?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8