WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 RGBA for IE when width/height not set, grm_wnr, September 20, 2004
     Re:RGBA for IE when width/height not set, Erik Arvidsson, September 22, 2004

Subject: RGBA for IE when width/height not set From: grm_wnr Date: September 20, 2004
I noticed that the PNG behaviour for IE doesn't work if the width and height of the picture have not been set. However, this is easy to implement in the .htc, just switch the PNG Test for the following:


if ( /\.png$/.test( realSrc.toLowerCase()) ) {
// save width/height
myWidth = element.width;
myHeight = element.height;
// set blank image
element.src = blankSrc;
element.width = myWidth;
element.height = myHeight;
// set filter
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
src + "',sizingMethod='scale')";
}


BTW, sorry if this has already been posted, i don't have time to check the whole forum rught now...



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX