Quick ie6 PngFix using jQuery

[javascript]
ie6PngFix = function($imgTag) {
if (typeof jQuery == ‘undefined’ || typeof $imgTag == ‘undefined’) return;
if (jQuery.browser.msie && jQuery.browser.version == ‘6.0’) {
//Apply the hack
$imgTag.attr({ "style": "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’" + $imgTag.attr(‘src’) + "’)", "src": ” })
}
}
[/javascript]

Leave a Reply