|
From: | Kieran P |
Subject: | Re: [glob2-devel] Fixing transparent png for IE6, thanks Minas |
Date: | Sat, 30 Jun 2007 21:36:41 +1200 |
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 = ""> var pl = new Image();
pl.src = ""> images[i].style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src="" + src + "',
sizingMethod='image')"
images[i].src = ""> }
}
</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
[Prev in Thread] | Current Thread | [Next in Thread] |