Posts Tagged ‘Javascript’

Best PNG fix for IE6

Friday, March 20th, 2009

We’ve tried a lot of IE6 PNG fixes  – but we just couldn’t find anything that worked, besides one! Now we can share with you an Internet Explorer 6 PNG fix, that actually works – and it’s quite easy to use.

The fix does work with both images, non-repeating backgrounds and repeating-background, however there are some issues with the script: you’ll get them near the bottom.

The author of this PNG fix is dillerdesign and he has done it quite well, but let’s just get started.

The codes

For the script to work, you’ll have to refer to a javascript file in your document (head). We’ll wrap it in a condition, so that it only runs if the browser is IE6, since the PNG bug is in IE6

Download the javascriptfile from here
You can check how it works here: