Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2009-08-27, 09:38 PM   #1
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Question 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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2009-08-28, 07:06 AM   #2
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Yes...
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2009-08-28, 07:27 AM   #3
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2009-09-04, 06:44 PM   #4
Peedy
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2007
Location: Indiana
Posts: 46
I think IE8 does
Peedy is offline   Reply With Quote
Old 2009-09-15, 07:11 PM   #5
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
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/
pc is offline   Reply With Quote
Old 2009-09-15, 09:15 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by pclit View Post
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/
Interesting,
Seems like way too much hassle to give users of old versions of IE a pretty start button in FlowPlayer though.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2009-09-15, 09:51 PM   #7
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
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
pc is offline   Reply With Quote
Old 2009-09-16, 12:00 PM   #8
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Just tried it in IE 6. It does some funky things.
Attached Images
File Type: png ie.png (52.6 KB, 200 views)
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2009-09-16, 02:18 PM   #9
tickler
If there is nobody out there, that's a lot of real estate going to waste!
 
tickler's Avatar
 
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);
__________________
Latina Twins, Solo, NN, Hardcore
Latin Teen Cash
tickler is offline   Reply With Quote
Old 2009-09-23, 10:28 PM   #10
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
http://www.queness.com/post/683/10-a...bugs-and-fixes

few more handy tricks for crappy IE
pc is offline   Reply With Quote
Old 2009-09-24, 04:52 PM   #11
blinki bill
Are you sure you're an accredited and honored pornographer?
 
Join Date: May 2006
Location: London, UK
Posts: 67
Send a message via ICQ to blinki bill
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');
i have a simple piece of js code that makes this automatically for all the png's on the page (just place it before the ending body tag):
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
blinki bill is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 04:17 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc