Re: HTML 4.01 valid button in IE, transparence

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