Skip to content

Instantly share code, notes, and snippets.

@joeegan
Created July 28, 2010 15:47
Show Gist options
  • Select an option

  • Save joeegan/494960 to your computer and use it in GitHub Desktop.

Select an option

Save joeegan/494960 to your computer and use it in GitHub Desktop.
belated_png_fix_lazy_usage
//ie6 pngfix
if ($.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent)) {
$('*').filter(function(){
return $(this).css('backgroundImage').indexOf('.png') >= 0;
}).addClass('png-fix');
$('img[src$=.png]').addClass('png-fix');
DD_belatedPNG.fix('.png-fix');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment