glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Fixing transparent png for IE6, thanks Minas


From: Kieran P
Subject: Re: [glob2-devel] Fixing transparent png for IE6, thanks Minas
Date: Sat, 30 Jun 2007 21:36:41 +1200

The trouble with the wiki is that it doesn't use img's for many things (that being <img> tag in XHTML). So that fix wont work. I can get maybe the logo, search and go, and the little bullets working. The background for the content parts I wont be able to do. Put simply, IE6 wont ever look the same way as the rest. Its that simple :(

But thanks for trying. I've implemented another fix I found. Hopefully might work too. I have yet to test.

Regards,
Kieran




On 6/30/07, Stéphane Magnenat <address@hidden> wrote:
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]