<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 12/2/08 12:50 PM, Sylvain Viollon wrote:
<blockquote cite="mid:20081202125004.0a2a92ce@reddwarf.infrae"
type="cite">
<pre wrap="">On Tue, 2 Dec 2008 11:51:02 +0100
Wichert Akkerman <a class="moz-txt-link-rfc2396E" href="mailto:wichert@wiggy.net"><wichert@wiggy.net></a> wrote:
Hello,
</pre>
<blockquote type="cite">
<pre wrap="">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(<a class="moz-txt-link-rfc2396E" href="mailto:img[@src$=.png]">"img[@src$=.png]"</a>).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.
</pre>
</blockquote>
<pre wrap=""><!---->
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).
</pre>
</blockquote>
<br>
This seems to work on all versions of IE6 we have tested this on.<br>
<br>
Wichert.<br>
<br>
<pre class="moz-signature" cols="72">--
Wichert Akkerman <a class="moz-txt-link-rfc2396E" href="mailto:wichert@wiggy.net"><wichert@wiggy.net></a> It is simple to make things.
<a class="moz-txt-link-freetext" href="http://www.wiggy.net/">http://www.wiggy.net/</a> It is hard to make things simple.
</pre>
</body>
</html>