PNG Transparency
This post is about a JavaScript-based PNG fix for Internet Explorer 5.5 and 6 on Windows. The fix allows IE to properly render PNG alphatransparency. Why only versions 5.5 & 6? Because Windows IE versions prior to 5.5 do not support the filter which fixes the PNG problem, and version 7 is reported to have fixed the issue entirely.
The code can be used either by a one-time copy-and-paste or as an include file. The entire thing is completely ignored by all other browsers - in fact it is treated as an HTML comment. This solution is therefore light, portable and non-invasive to other browsers.
Just copy the Javascript code from pngfix.js in its entirety (from ) and paste it into your page somewhere in the the section or if you are going to use it in multiple pages you can just include the pngfix.js file in the head section of the required pages.
<!–[if lt IE 7.]>
<mce:script defer type=”text/javascript” src=”pngfix.js” mce_src=”trans_png.js”></mce:script>
<![endif]–>