SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    0 Post(s)
    0 Thread(s)

    Question Image instead of Flash if Flash is not enabled

    I have one flash on my site but many users dont have flash installed on the store so i have decided to show image instead of flash in such situation.

    If user dont have flash installed then show normal image else show the flash but how to check if user dont have flash enabled?

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Yorkshire, UK
    123 Post(s)
    1 Thread(s)
    It's very easy!

    Inside the <object>...</object> you probably have a load of parameter tags - you may also have some text along the lines of "Download Macromedia Flash".

    What this does is means that if the browser can't render the Flash object, it will instead render any text or elements that are inside the <object> that it understands.

    So you need to have something along the lines of:
    <object data=..........>
    <param name=..........>
    <param name=..........>
    <img src="alternative.png" alt=.........>
    That way, any browser that can show the Flash will do, and any that can't will show the image, and any that can't show the image will show the alt text.


Posting Permissions

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