Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:30:56+00:00 2026-06-18T03:30:56+00:00

I am using the following code to fix PNG issue for IE6 (yes, we

  • 0

I am using the following code to fix PNG issue for IE6 (yes, we do have some visitors using IE6 🙁 ) … the code seems to replace .png images with the blank image but then doesn’t seem to run the filter properly … any ideas why it could be failing? Thanks

        var blank = new Image();
         blank.src = 'img/blank.gif';
         $(document).ready(function() {
           var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
           if (badBrowser) {
               //alert('bad browser');
             // get all pngs on page
             $('img[src$=".png"]').each(function() {
               if (!this.complete) {
                 this.onload = function() { fixPng(this) };
               } else {
                 fixPng(this);
               }
             });
           }
         });

         function fixPng(png) {
           // get src
           var src = png.src;
           // set width and height
           if (!png.style.width) { png.style.width = $(png).width(); }
           if (!png.style.height) { png.style.height = $(png).height(); }
           // replace by blank image
           png.onload = function() { };
           png.src = blank.src;
           // set filter (display original image)
           png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
         }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:30:57+00:00Added an answer on June 18, 2026 at 3:30 am

    One possible actual answer for you, after all the comments saying not to bother doing anything:

    Most of the remaining IE6 users are in corporates that just can’t upgrade for one reason or another.

    The may not be able to upgrade, but most of them are well aware of the major security issues that IE6 presents, and do try to mitigate the risks as much as possible.

    One key thing that can be done to mitigate the IE6 risk is to disable the browser from running ActiveX, at least for sites on the external internet (activeX plugins on their internal intranet sites are often one of the reasons they can’t upgrade).

    You’ll note that the filter style uses ActiveX to do its magic.

    Therefore, if ActiveX is disabled, it means that filter styles won’t work. This will break your pngfix. (It also breaks a lot of other stuff, including most Ajax code, so these users will have a pretty broken internet experience generally).

    Its worth re-iterating that for IE6 users with ActiveX switched off, there is no other work-around for the PNG bug. If you’ve got users in this position then the only way around it is to go back to 2001 and use GIFs instead.

    You could try some of the other png fix scripts out there – there are a number of them, and I know some worked better than others — but at the end of the day I’ll go back to my original comment and recommend just leaving the graphic rendering broken for IE6 users. Their internet experience will be broken enough anyway that if a site is usable at all it’s a bonus; a few rendering glitches won’t put them off.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment: WebGL, Chrome. I have the following behavior when using transparent png's as textures
I am using the following code to convert some Json into a dynamic object.
Using following code I try to get updated list of checkbuttons' corresponding text values,
I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
I am creating date using following code try { newdatetime = new DateTime(2012, 2,
I am using following code for showing a MessageBox with ok and cancel button.
I am using following code to show a spinning wheel: $(#loading) .hide() .ajaxStart(function(){ $(this).show();
I am using following code to get bitmap from url. This function is used
i am using following code. public class MyCount extends CountDownTimer { public MyCount(long millisInFuture,
I am using following code for inserting comments: <div id=2 class=789678> <div id=dynamic2> <span

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.