SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2003
    Location
    shropshire uk
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect if browser supports PNG

    Is there a way to detect if a browser supports PNG using Javascript?

    Can anyone point me to a site that details which browsers support PNG?

  2. #2
    Beer Monster -Ox's Avatar
    Join Date
    Apr 2003
    Location
    sowth afreeka
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no too sure about checking support ofr PNG's but this might be of use.

    http://www.libpng.org/pub/png/pngapbr.html

    there are a load of link on there too also the PNG Status http://www.libpng.org/pub/png/pngstatus.html

    Hope that helps on some way?
    My postings are a natural product.
    The slight variations in spelling and grammar enhance its
    individual character and beauty and in no way are to be
    considered flaws or defects - http://www.guinnesspig.net

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    HTML works wonders for this
    HTML Code:
    <object type="image/png" 
    data="/images/my.png"
    width="400" height="150">
    <p>If you see this you don't have PNG support!</p>
    </object>

  4. #4
    Non-Member DaveMichaels's Avatar
    Join Date
    Nov 2004
    Location
    US
    Posts
    535
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you can use a BrowserCap file.


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
  •