[Grok-dev] Problems serving iepngfix.htc for transparent PNG in IE6
Wichert Akkerman
wichert at wiggy.net
Tue Dec 2 07:03:05 EST 2008
On 12/2/08 12:50 PM, Sylvain Viollon wrote:
> 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).
>
This seems to work on all versions of IE6 we have tested this on.
Wichert.
--
Wichert Akkerman<wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20081202/edde2454/attachment.html
More information about the Grok-dev
mailing list