Combination View Flat View Tree View
Threads [ Previous | Next ]
Chris Whittle
Had to Share... IE 6 PNGFix that actually works with liferay...
November 13, 2008 1:34 PM
Answer

Chris Whittle

Rank: Expert

Posts: 462

Join Date: September 17, 2008

Recent Posts

Ok now I don;t want any comments about how this isn't valid CSS/HTML but it works... I tried every htc/hack out there and none of them worked more than 60% of the time at best at worst broke...

you need to create a transparent.gif that's not noted on the below reference
add this in your custom.css file of your template (adjust the path to transparent.gif.. it needs a direct path)
* html body img, * html body span{
      behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=trueemoticonthis.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
             this.runtimeStyle.filter = "progidemoticonXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
             this.src = "/myJBHuntV2-theme/css/transparent.gif")emoticonthis.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
             this.runtimeStyle.filter = "progidemoticonXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
             this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
     );
}

and your done....

Reference