IE6 .png transparency?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JD
    Too lazy to set a custom title
    • Sep 2003
    • 22651

    #1

    IE6 .png transparency?

    anyone know the absolute best way to deal with IE6 and it's lack of support for transparency? I know of a couple methods but they impact load times.

    And one more thing, how can I deliver it to ONLY IE6 users? I've tried using
    <!--[if IE 6]>
    Special instructions for IE 6 here
    <![endif]-->

    but that doesn't hit for just IE6 for whatever reason IE7/8 pic it up too :/
  • JD
    Too lazy to set a custom title
    • Sep 2003
    • 22651

    #2
    really? nobody? wow...

    Comment

    • sortie
      Confirmed User
      • Mar 2007
      • 7771

      #3
      Gif...........

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55705

        #4
        you use iepngfix?

        http://www.twinhelix.com/css/iepngfix/
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • JD
          Too lazy to set a custom title
          • Sep 2003
          • 22651

          #5
          Originally posted by sortie
          Gif...........
          lmao... yeah ok... obviously you don't know the difference between gifs and .pngs when it comes to transparency

          Originally posted by fris
          yeah was looking for other solutions

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55705

            #6
            check out these links also good reads

            http://www.ajaxonomy.com/2008/web-de...ore-with-ie7js

            http://www.sohtanaka.com/web-design/...arency-in-ie6/
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • sortie
              Confirmed User
              • Mar 2007
              • 7771

              #7
              Originally posted by JD
              lmao... yeah ok... obviously you don't know the difference between gifs and .pngs when it comes to transparency



              yeah was looking for other solutions
              But I'm not the one here fucked up over though am I?

              Comment

              • sortie
                Confirmed User
                • Mar 2007
                • 7771

                #8
                If you knew what the fuck programming was you'd use imagemagick based on the browser.

                Comment

                • JD
                  Too lazy to set a custom title
                  • Sep 2003
                  • 22651

                  #9
                  i'm not "fucked up" over anything sortie. I have several solutions but just looking for MORE options.

                  imagemagick based on the browser? LOL...

                  thanks for the links fris

                  Comment

                  • Serge Litehead
                    Confirmed User
                    • Dec 2002
                    • 5190

                    #10
                    <!--[if lt IE 7]>
                    ...
                    <![endif]-->

                    Comment

                    • TheHatchet
                      Half man... Half Amazing!
                      • Sep 2002
                      • 13958

                      #11
                      ive used pngFix many times without any issues. Whats the problem?

                      Comment

                      • JD
                        Too lazy to set a custom title
                        • Sep 2003
                        • 22651

                        #12
                        Originally posted by BarryTheHatchet
                        ive used pngFix many times without any issues. Whats the problem?
                        iepngfix (last time i used it) made the page load pretty slow. Of course I was using a bunch of pngs in the design...

                        just trying to see what else is out there ;)

                        Comment

                        • tranza
                          ICQ: 197-556-237
                          • Jun 2003
                          • 57559

                          #13
                          I really hate IE
                          I'm just a newbie.

                          Comment

                          • JD
                            Too lazy to set a custom title
                            • Sep 2003
                            • 22651

                            #14
                            Originally posted by tranza
                            I really hate IE
                            i couldn't agree more :/ more specifically, IE6

                            Comment

                            • harvey
                              Confirmed User
                              • Jul 2001
                              • 9266

                              #15
                              for those that don't know, pngfix works really bad with IE6. The one below is the best solution by a long mile (probably the only one that really works). And yes, that's the conditional code to spot IE6 and older and not affect IE7 and newer

                              Code:
                              <!--[if lt IE 7]>
                              <script language="JavaScript">
                              function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
                              {
                                 var arVersion = navigator.appVersion.split("MSIE")
                                 var version = parseFloat(arVersion[1])
                                 if ((version >= 5.5) && (document.body.filters)) 
                                 {
                                    for(var i=0; i<document.images.length; i++)
                                    {
                                       var img = document.images[i]
                                       var imgName = img.src.toUpperCase()
                                       if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
                                       {
                                          var imgID = (img.id) ? "id='" + img.id + "' " : ""
                                          var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                                          var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                                          var imgStyle = "display:inline-block;" + img.style.cssText 
                                          if (img.align == "left") imgStyle = "float:left;" + imgStyle
                                          if (img.align == "right") imgStyle = "float:right;" + imgStyle
                                          if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                                          var strNewHTML = "<span " + imgID + imgClass + imgTitle
                                          + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
                                          + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                                          + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
                                          img.outerHTML = strNewHTML
                                          i = i-1
                                       }
                                    }
                                 }    
                              }
                              window.attachEvent("onload", correctPNG);
                              </script>
                              <![endif]-->
                              This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

                              Comment

                              • wdforty
                                Confirmed User
                                • Jul 2004
                                • 1824

                                #16
                                you should be using
                                <!--[if lt IE 7]><![endif]--> (if less than version 7....)

                                As for png fix there are tons out there just search. None are perfect and all affect loading time so just find one you're happy with.
                                icq 157542142

                                Comment

                                • leming
                                  ★ CONFIRMED DESIGNER ★
                                  • Apr 2003
                                  • 1775

                                  #17
                                  Just make png transparency without any gradients. It should work without any dances
                                  DESIGN ★ BANNERS ★ LOGOS ★ 3D ★ VIDEO-EDITING
                                  Portfolio | Telegram | E-mail | Skype:leming_

                                  Comment

                                  • fris
                                    Too lazy to set a custom title
                                    • Aug 2002
                                    • 55705

                                    #18
                                    Originally posted by wdforty
                                    you should be using
                                    <!--[if lt IE 7]><![endif]--> (if less than version 7....)

                                    As for png fix there are tons out there just search. None are perfect and all affect loading time so just find one you're happy with.
                                    hit me up when you have a second
                                    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                    Comment

                                    • redwhiteandblue
                                      Bollocks
                                      • Jun 2007
                                      • 2785

                                      #19
                                      Originally posted by JD
                                      And one more thing, how can I deliver it to ONLY IE6 users? I've tried using
                                      <!--[if IE 6]>
                                      Special instructions for IE 6 here
                                      <![endif]-->

                                      but that doesn't hit for just IE6 for whatever reason IE7/8 pic it up too :/
                                      Have you got MultipleIE installed? Because apparently if you've got multiple versions of IE on one machine then the conditional comments behave as though you're running the highest version.
                                      Interserver unmanaged AMD Ryzen servers from $73.00

                                      Comment

                                      • candyflip
                                        Carpe Visio
                                        • Jul 2002
                                        • 43069

                                        #20
                                        Doesn't take long for Sortie to douche up a thread these days does it?

                                        Spend you some brain.
                                        Email Me

                                        Comment

                                        • potter
                                          Confirmed User
                                          • Dec 2004
                                          • 6559

                                          #21
                                          <!--[if IE 6]>

                                          should work just for ie 6, something on your end must be wrong.

                                          also, i typically use unit png fix for a png ie6 fix (when im not just popping up a modal saying you suck for ie6 users)

                                          Comment

                                          • jawanda
                                            Confirmed User
                                            • Feb 2003
                                            • 6040

                                            #22
                                            I use a little javascript called SuperSleight and it works great.

                                            <!--[if lte IE 6]>
                                            <script type="text/javascript" src="supersleight-min.js"></script>
                                            <![endif]-->
                                            <script language="javascript">
                                            function divclose()
                                            {
                                            supersleight.init()
                                            }
                                            </script>

                                            Get the script here: http://24ways.org/code/supersleight-...persleight.zip

                                            Only effects IE6. Works perfect for me.

                                            -P

                                            Comment

                                            • jawanda
                                              Confirmed User
                                              • Feb 2003
                                              • 6040

                                              #23
                                              Also checkout this page for a good discussion of the different techniques, including Supersleight.

                                              http://24ways.org/2007/supersleight-...ent-png-in-ie6

                                              Comment

                                              • JD
                                                Too lazy to set a custom title
                                                • Sep 2003
                                                • 22651

                                                #24
                                                Originally posted by redwhiteandblue
                                                Have you got MultipleIE installed? Because apparently if you've got multiple versions of IE on one machine then the conditional comments behave as though you're running the highest version.
                                                I do have it installed actually...

                                                Comment

                                                Working...