Combating IE6: jQuery Png Fix

For all you web designers out there: We’ve all come a long way together.. plodding through all the horrific browser incompatibilities. Telling each other different hacks and tricks. …trying to avoid those horrific box model differences. We’re all optimistic about standards in the future.. but how are we still dealing with archival browsers? Some people say “screw IE6 who gives a crap?” But people like me who make sites for older clients and organizations that still might have IE6 running on their internal systems just cant turn our heads. Well, here is my “Combating IE6″ tip #1:

jQuery PNG Fix

Well, jQuery has been around for a while now.. and I absolutely love it. I’ve been using a jQuery .png fix script for a while now and I thought I’d share. As they say:

This plugin will fix the missing PNG-Transparency in Windows Internet Explorer 5.5 & 6.

You will go from this to this: (yay!)

png brokenpng fixed http://jquery.andreaseberhard.de/pngFix/ is the link to the script.

All you do it install it, and the latest jQuery.. point to it in your header.

<pre><code><head>
...
<script type="text/javascript" src="jquery-latest.pack.js"></script>
<script type="text/javascript" src="jquery.pngFix.js"></script>
...
</head>

then document-ready function it:

<pre><code><head>
...
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix();
});
</script>
...
</head>

and YATTA! PNG’s are magically fixed!

download here: http://jquery.andreaseberhard.de/pngFix/

More combating IE6 posts to come. Would love to know your methods!

5 thoughts on “Combating IE6: jQuery Png Fix

  1. I too used the regular ol' pngfix.js and it would produce errors on certain websites for some reason. This looks great. It does amaze me that even brand new business-grade workstations from Dell and other manufacturers that have XP preinstalled on them come equipped with IE6. I assume it is necessary for those people using web-based line of business applications that still require IE6. I can't wait for the day it completely dies.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

You can add images to your comment by clicking here.