[Grok-dev] Problems serving iepngfix.htc for transparent PNG in IE6

Sylvain Viollon sylvain at infrae.com
Tue Dec 2 06:50:04 EST 2008


On Tue, 2 Dec 2008 11:51:02 +0100
Wichert Akkerman <wichert at wiggy.net> wrote:

 Hello,

> We recently came up with a very simple bit of javascript that works
> wonders:
> 
>     var ie55 = (navigator.appName == "Microsoft Internet Explorer" &&
> parseInt(navigator.appVersion) == 4 &&
> navigator.appVersion.indexOf("MSIE 5.5") != -1); var ie6 =
> (navigator.appName == "Microsoft Internet Explorer" &&
> parseInt(navigator.appVersion) == 4 &&
> navigator.appVersion.indexOf("MSIE 6.0") != -1);
> 
>     if (jQuery.browser.msie && (ie55 || ie6)) {
>         root.find("img[@src$=.png]").each(function() {
>             $(this).css({
>                     height: "0px",
>                     width: $(this).width()+"px",
>                     "padding-top" : $(this) .height()+"px",
>                     overflow : "hidden",
>                     filter :
> "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
> $(this).attr("src") + "', sizingMethod='scale')" }); });
>     }
> 
> for some reason most people seem to want to wrap images in spans or
> mess around with dummy images like the komodomedia.com snippet does.
> 

   I known that one, which is quite old. But this requires the user to
have DirectX installed, which was not always the case on old Windows
versions (and I think people using IE 5 or 6 might still have old
version of Windows).

   Best regards,

   Sylvain,

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20081202/14a30b63/attachment.bin 


More information about the Grok-dev mailing list