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: Mike Date: October 25, 2004
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



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