Posted By

LukeLux on 03/01/11


Tagged

css textmate ie6


Versions (?)

IE6 PNG Fix


 / Published in: Other
 

  1. /*---- png fix for ie6 ----*/
  2. html .png {position:relative; 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')",
  3. this.src = "transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
  4. this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
  5. this.runtimeStyle.backgroundImage = "none")),this.pngSet=true));}

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: kiibriia on March 1, 2011

y

You need to login to post a comment.