Would have been nice if I actually posted the code:

jQuery.fn.pngFixer = function(){
   try{
         if (navigator.appVersion.match(/MSIE [0-6]\./)) {
           $(this).each(function () {
             if (this.currentStyle.backgroundImage != 'none') {
               var image = this.currentStyle.backgroundImage;
               image = this.currentStyle.backgroundImage.substring(5,
image.length - 2);
               $(this).css({
                 'backgroundImage': 'none',
                 'filter': "progid:
DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop,
src='" + image + "')"
               });
             }
           });
         }
   }
   catch(e){
       $.log('ERROR: (pngFixer)' + e.name + ': ' + e.message);
   }
}

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to