We can fix transparent png for IE 6 unsing this code, nicely provided by Minas 
from kenzan.ch:

<!--[if lt IE 7]>
<p>
  <script type="text/javascript">
   var images = document.getElementsByTagName("img");
   for(i = 0; i<images.length; ++i)
   {
    if(images[i].src.indexOf(".png")!=-1)
    {
     var src = images[i].src;
     var pl = new Image();
     pl.src = src;
     images[i].style.filter = 
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', 
sizingMethod='image')"
     images[i].src = "img/x.gif";
    }
   }
  </script>
</p>
<![endif]-->


Comments are a way to include code in IE only. x.gif is a 1x1 transparent gif. 
Put this code at top of all page and transparent png will work on IE6.

Thanks again Seb,

Steph

-- 
http://stephane.magnenat.net


_______________________________________________
glob2-devel mailing list
glob2-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to