SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    574
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question pngfix script not working

    I'm having a problem with this site in that the png transparencies aren't working in IE 6 or 7. I added a JavaScript file that I've used before to fix it but it's not working here. I may not be calling it correctly or something. The file is pngfix.js and I'm calling it in the header like this:

    Code:
    <!--[if lt IE 7]>
    <script defer type="text/javascript" src="pngfix.js"></script>
    <![endif]-->
    Any ideas what I'm doing wrong and how to fix it? One thing that's weird about this to me is that before when I've used png files, they've worked in IE7 and this one doesn't. Also, the way I'm calling the script doesn't make sense if it's not working in IE7, either. Anyway . . . help?

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,862
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    That code is just a comment as far as IE7 is concerned as it is an instruction for only IE5 through IE6 to include the JavaScript.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    IE7 supports PNG alpha channels you do not need a script for it.

    Are you using a standalone version of IE (any version)?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

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