WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 PNG Behavior, Richard, September 21, 2004
     Re:PNG Behavior, andrew saturn, November 26, 2004
     Re:PNG Behavior, Mike, October 25, 2004
         Re:PNG Behavior, Richard, October 27, 2004

Subject: Re:PNG Behavior From: Richard Date: October 27, 2004



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,




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;



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