Message Thread: |
View All MessagesBack to WebFX |
Hi! I’ve tried your suggestion, but it still not work? I think Explorer looks for the images in the html code and not as a background image for the object, which is declared in a stylesheet? Any suggestion how to apply the behavior on a background image? To better understand my problem you can take a look at the address: http://www.scalado.com/testing/index.htmll, /Richard. From: Mike Sent: October 25, 2004 Subject: Re:PNG Behavior In the pngbehavior.htc, try editing the part that says "// test for png" to be like following: if ( /\.png$/.test( realSrc.toLowerCase() ) ) { // save width/height myWidth = element.width; myHeight = element.height; // set blank image element.src = blankSrc; // set filter element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')"; // set height and width element.width = myWidth; element.height = myHeight; } --Mike |