Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default IE6 Transparent PNG's

    There are many, many tutorials on the net that explain how to get round the transparent png issue with IE6. However, none of them are geared towards absolute beginners (like me).

    Does anyone know of a good walkthrough that explains how to combat the transparent png issue on a Zen Cart site? What files to edit, where to put the code etc., etc??

  2. #2
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: IE6 Transparent PNG's

    I have used the pngunit fix to make 24bit pngs with alpha work on ie6. It's pretty easy. Give me a few and I'll dig up what you need to do and post again.

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: IE6 Transparent PNG's

    OK, go here:
    http://labs.unitinteractive.com/unitpngfix.php

    and download the script.
    Put it somewhere on your site.

    Then to your html_header.php add:

    Code:
    <!--[if lt IE 7]>
            <script type="text/javascript" src="unitpngfix.js"></script>
    <![endif]-->
    Make sure the above is NOT between any php tags.

    change the src= to the path to where you uploaded the script.

    Thats it!

    This is the best solution I've found so far.

    The only drawback is if you use a 24 bit png as a background in a element, it may or may not do what you expect. But for displaying them with the img tag, It's pretty perfect.

  4. #4
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: IE6 Transparent PNG's

    I gave up on Transparent PNG's and converted them to Transparent GIF's not as nice but enough to get by with.

    Skip
    • 446F63746F722057686F •

  5. #5
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: IE6 Transparent PNG's

    Oh yea, There is also a tiny 1 pixel transparent graphic you upload as well (its in the zip)

  6. #6
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: IE6 Transparent PNG's

    Quote Originally Posted by skipwater View Post
    I gave up on Transparent PNG's and converted them to Transparent GIF's not as nice but enough to get by with.

    Skip
    You should try this skipwater, it works very well.

  7. #7
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: IE6 Transparent PNG's

    I might do that on the next site.
    Thanks for the info.

    Skip
    • 446F63746F722057686F •

  8. #8
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: IE6 Transparent PNG's

    OK, let's try and get to the bottom of this then as it simply doesn't work for me. Here is the step by step I've tried:

    (1) Uploaded the clear.gif to my root folder at www.limelites.co.uk
    (2) Uploaded the unitpngfix.js to my root folder too
    (3) Added the code to /includes/templates/CUSTOM/common/html_header.php

    added this at the very bottom just above the closing </head> tag:

    <script type="text/javascript" src="https://www.limelites.co.uk/unitpngfix.js"></script>


    That should be it right? Well, I'm using PNG24 images on certain areas of Limelites and they still don't show transparent on IE6. Where am I going wrong?

    I don't want to use .gif's as they look awful and ragged edged.

  9. #9
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: IE6 Transparent PNG's

    OK FIGURED IT OUT!!

    Here's the step by step in detail:

    (1) Upload the clear.gif to your root folder at www.YOURSITE.com

    (2) Edit unitpngfix.js and:

    replace:
    PHP Code:
    var clear="images/clear.gif"//path to clear.gif 
    with:
    PHP Code:
    var clear="https://www.YOURSITE.com/clear.gif"
    (3) Upload the unitpngfix.js to your root folder at www.YOURSITE.com

    (4) Add this code to /includes/templates/CUSTOM/common/html_header.php

    (add it at the very bottom just above the closing </head> tag):

    PHP Code:
    <!--[if lt IE 7]>
            <
    script type="text/javascript" src="unitpngfix.js"></script>
    <![endif]--> 
    That's it!! It definitely works. Tried and tested. I'm using PNG24's though. Not sure if it'll work with PNG8's

 

 

Similar Threads

  1. The Pathetic MS IE6 and PNG
    By zenHomeboy in forum General Questions
    Replies: 4
    Last Post: 8 Aug 2010, 08:22 AM
  2. Remove grey Background from Transparent PNG in IE.
    By Dimascus in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Dec 2009, 09:53 PM
  3. *.png IE correction?
    By freebe in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 10 Dec 2009, 10:46 AM
  4. IE6 PNG Background Removes Additional Images
    By thunderhawk6630 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2009, 09:36 PM
  5. Transparent PNG Problem in IE
    By bombknex in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Oct 2006, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg