SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: alphafilter

  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question alphafilter

    Hi,

    I've just discovered that IE (version < 7.x) does not support PNG images.
    Basically i've read that we can walkaround it by using alphafilter.

    therefore, in order to load the right css file, i would like to test if the alphafilter command is available or not. (which is equivalent to detect browser + version).

    How can i do that ?

    thanks a lot,

    M

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I think the best way to do this is to use conditional comments around a <script> element to target IE6 and below only. The script would apply the AlphaImageLoader workaround to your images, whether it is a specific number of them or all PNGs in the page.

    This script does a good job of making PNGs transparent in IE6-.


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
  •