JavaScript PNG Hack for Internet Explorer (IE)

Aug
04

You may remember I wrote an article a while ago that CSS PNG Hack for Internet Explorer (IE) which detailed a CSS based approach allowing PNGs to display correctly in Internet Explorer. Well since then I have found a JavaScript based PNG hack which looks quite handy.

The script was created by Bob Osola and simply only requires that it is included at the top of the page as follows:

<!–[if lt IE 7.]>
    <script defer type="text/javascript" src="pngfix.js"></script>
<![endif]–>

Please have a look at Bob Osolas PNG Hack Technique and also the PNG Hack Demo.

One Response to “JavaScript PNG Hack for Internet Explorer (IE)”

  1. James Irwin says:

    I love this script for most things, but it doesn’t work on PNG CSS background images. Other than that, it’s great!

Leave a Reply