W3C home > Mailing lists > Public > www-talk@w3.org > January to February 2004

Re: HTML 4.01 valid button in IE, transparence

From: Giorgia Balducchi <giorgia@lynx2000.it>
Date: Sun, 29 Feb 2004 11:08:58 +0100
Message-Id: <5.1.0.14.0.20040229104558.00ae7ca0@pop.lynx2000.it>
To: <www-talk@w3.org>

At  28/02/2004 ore 23.07, David Wieditz wrote:

>In my Internet Explorer (6.0), the 4.01 Valid button don't work with
>transparency.
>It must be converted to indicated colour, like the CSS Valid button to work.
>Just a cosmetic fault. Hope u'll fix it. And Microsoft should implement full
>PNG support.
>
>David Wieditz

You can try with this javascript:

function fnLoadPngs() {
var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
for (var i = document.images.length - 1, img = null; (img = 
document.images[i]); i--) {
if (itsAllGood && img.src.match(/\.png$/i) != null) {
var src = img.src;
img.style.width = img.width + "px";
img.style.height = img.height + "px";
img.style.filter = 
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', 
sizingMethod='scale')"
img.src = "onepixeltransparent.gif";
}
img.style.visibility = "visible";
}
}

IE can view transparent png with an active x.
Gio
Received on Sunday, 29 February 2004 08:27:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:03 UTC