|
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
2009-08-27, 09:38 PM | #1 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Does the newer versions of IE support transparency with png images?
The thread title pretty much says what I'm asking.
I know IE 6 doesn't support transparency with png images but was wondering if 7 or 8 or whatever version IE is up to now supports ransparency with png images. |
2009-08-28, 07:06 AM | #2 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Yes...
|
2009-08-28, 07:27 AM | #3 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Good to know. I've been using a transparent png as the start button in Flowplayer and wow does it look fugly in IE 6.
|
2009-09-04, 06:44 PM | #4 |
WHO IS FONZY!?! Don't they teach you anything at school?
|
I think IE8 does
|
2009-09-15, 07:11 PM | #5 |
Shift Out / X-On
|
Cleo
If you still care or want transparency in PNG to work in older IE versions,this is a nice fix for that. http://www.twinhelix.com/css/iepngfix/demo/ |
2009-09-15, 09:15 PM | #6 | |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
Seems like way too much hassle to give users of old versions of IE a pretty start button in FlowPlayer though. |
|
2009-09-15, 09:51 PM | #7 |
Shift Out / X-On
|
All you need to do is to place this in your <head> section :
<style type="text/css"> img { behavior: url(http://www.domain.com/whatever/css/iepngfix.htc) } </style> and have that iepngfix.htc in place That should do the trick. I can't check that on my laptop. I don't have IE5 or 6 or 7 Note to anybody with older IE version: http://www.twinhelix.com/css/iepngfix/demo/ Is demo image on right side transparent ? Last edited by pc; 2009-09-15 at 10:37 PM.. Reason: note to myself:transcendent is not transparent, lol |
2009-09-16, 12:00 PM | #8 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Just tried it in IE 6. It does some funky things.
|
2009-09-16, 02:18 PM | #9 |
If there is nobody out there, that's a lot of real estate going to waste!
Join Date: Dec 2003
Posts: 2,177
|
I generally just use a filter to make a color transparent, and it works on all image types.
Not sure if it's completely CSS compliant though but works in IE. To drop red: filter: chroma(color='#ff0000); |
2009-09-23, 10:28 PM | #10 |
Shift Out / X-On
|
|
2009-09-24, 04:52 PM | #11 |
Are you sure you're an accredited and honored pornographer?
|
png transparency work just fine with ie7 and ie8
for older versions like ie6 the best option i think is trough css instead of having the image in img tag you can just place and empty span and then assign class to this span with the following: Code:
background:url(noimage.gif); filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='path_to_png_image', sizingMethod='scale'); Code:
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ var ieversion=new Number(RegExp.$1) if (ieversion == 7) { for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML i = i-1 } } }
__________________
I'm looking for the question about the life, the universe and everything else |
|
|