FWIW, I've been using the following code for a couple of years:
Add this to a CSS file or style tag:
.png24{filter:expression(applyPNGFilter(this))}
Add this to your javascript:
function applyPNGFilter(img) {
var t="images/a_pixel.png";
if( img.src != t ) {
var s=img.src;
img.src = t;
img.runtimeStyle.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s
+"',sizingMethod='scale')";
}
}
You need a_pixel.png, the ubiquitous single transparent pixel and you
need to point the code to it.
To use it, just add class="png24" to any 24 bit image. It can be a
static image in the page, content loaded asynchronously or
programmatically generated content. All browsers except IE will
ignore the filter:expression in CSS and if you really want, you can
use an <!--[if IE 6]>...<![endif]--> around the CSS or stylesheet.
Cheers
Paul
On 6-Oct-08, at 2:08 PM, nutron wrote:
Honestly, I think the CodeIgniter quote sinches it - the MooTools dev
team's priorities may not be yours. And they shouldn't be. You know
how long I've been bugging to get an alphaPNG fix added to MooTools?
They said no. Repeatedly. And I listened. I moved on. Sure, I cried
myself to bed that night because some one on the internet was brash
with me, but I realized something that night...
Just FYI:
http://clientside.cnet.com/wiki/cnet-libraries/02-browser/01-fixpng
The MooTools Tutorial: www.mootorial.com CNET Clientside:
clientside.cnet.com
View this message in context: Re: What's going on in MooTools...
Sent from the MooTools Users mailing list archive at Nabble.com.