Return to Snippet

Revision: 16686
at August 12, 2009 11:01 by gryzzly


Initial Code
* html img, /*png fix for <img> */
* html .png{
behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "/style/blank.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
this.runtimeStyle.backgroundImage = "none")), this.pngSet=true)
);
}

Initial URL


Initial Description
requires blank.gif (transparent 1px gif image)

Initial Title
image tag png fix for ie6

Initial Tags
css, ie6

Initial Language
CSS