0
Welcome Guest! Login
0 items Join Now

png never works?

  • Re: png never works?

    Posted 17 years 5 months ago
    • James S! wrote:
      I will take Equinox as my example.

      In the index.php, you will observe
      <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif" style="border:0;" alt="" id="logo" />
      You will notice it is loading blank.gif which is an image which is invisible.

      The other reference to focus on is id="logo". This allows us to control it in the CSS
      #logo {
      background: url(../images/style2/logo.png) no-repeat scroll 0pt;
      }

      Therefore, the logo.png will be loaded.

      Understood, I guess my question then is what is the relationship between replacing a png through this method and the fact that the png is gray in IE 6?

      Or better put, does the iepngfix.htc fix all pngs regardless of whether they are replaced in this fashion or they are added through some other means?

      All of the pngs on my local install rocket theme templates are gray, including the logo.
  • Re: png never works?

    Posted 17 years 5 months ago
    • It is loading logo.png but if logo.png is a transparent PNG, then you will see the gray background.
    • James Spencer / Developer & Support / Hull, UK
  • Re: png never works?

    Posted 17 years 5 months ago
    • index.php:
      -removed IE6 conditional
      <style type="text/css">
      #fxTab {background: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='templates/<?php echo $mainframe->getTemplate(); ?>/images/<?php echo $tstyle; ?>/fx-tab.png', sizingMethod='scale', enabled='true');}

      index.php
      -when img behavior commented, all gray pngs are fixed EXCEPT logo.
      -when img behavior is allowed to run, all pngs are gray including logo.
      /*  img { behavior: url(<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/iepngfix.htc); } */
      </style>

      css for applicable style:
      img#logo {
           background: url(../images/style15/logo_24bit.png) 0 0 no-repeat;
      }

      gif replaced by logo
      <a href="http://candogo.com" class="nounder"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/blank.gif" style="border:0;" alt="CanDoGo" id="logo" /></a>

      Would it be easier for me to pm you the site? It's running a GIF now just to get by.
  • Re: png never works?

    Posted 17 years 5 months ago
    • Here's a test site where the iepngfix.htc is firing but the logo's background is gray:
      www.arnne.org/oct/

      Load in IE to see gray and htc alert that it is being called.
      Load it in FF to see that logo isn't getting swapped out at all.


      Sigh.
    • Last Edit: 17 years 5 months ago by Simon Shah.
  • Re: png never works?

    Posted 17 years 5 months ago
    • The iepngfix will not work for your logo. Use the source file in Fireworks to place the background around your logo.
    • James Spencer / Developer & Support / Hull, UK
  • Re: png never works?

    Posted 17 years 5 months ago
    • James, thank you. What is the quality that the source logo has that makes it work with iepngfix? Because I actually don't have Fireworks but I do have PhotoShop and ImageReady, so I would like to not make another mistake.
  • Re: png never works?

    Posted 17 years 5 months ago
    • It is much easier to use Fireworks, you could try the 30 day trial to get this little task done :)
    • James Spencer / Developer & Support / Hull, UK
  • Re: png never works?

    Posted 17 years 5 months ago
    • We went with a JPG but out of I'm still curious - the logos that come with the theme are not transparent.
  • Re: png never works?

    Posted 17 years 5 months ago
    • i happened to notice the on the demo site at demo.rockettheme.com that the Dimension, Equinox (the image in the Blue area that says Final Piece to the Puzzle), The module to the right on Simplex, Replicant (i stopped going backward at this point) do not seem to support a transparent PNG function or maybe it does but it is only limited in its functionality and not truly a fix to make these themes look the same in IE5.5/IE6? I am trying to determine if i am to support the older browsers how much i need to rework the graphics accordingly.

      for those that are struggling to test across browsers, i found that tredosoft.com/Multiple_IE has proven invaluable to test older browser issues. for some reaosn clients dont like to hear "Well, it looks great on my machine!". heh
  • Re: png never works?

    Posted 17 years 5 months ago
    • Try reinstalling IE. I do not have an issue with my IE.
    • James Spencer / Developer & Support / Hull, UK

Time to create page: 0.065 seconds