Results 1 to 3 of 3

Thread: How to show image if no flash is installed?

  1. #1
    Join Date
    Apr 2009
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to show image if no flash is installed?

    Hi,

    I have one flash image on my site's home page.

    Many users don't have flash installed on their machine / browsers, so I have decided to show a image instead of flash image in such situation in all browsers.

    Can anybody help me in how to check if user don't have flash enabled or how to show a image if there is no flash installed?

    Thanks.
    Last edited by dchopda; 08-16-2010 at 11:22 AM. Reason: Making content specific and compact

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,373
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    There are various ways. If you are using a single valid object tag, or two nested object tags, you can just put the alternate content inside the innermost object tag. Example using a single valid object tag:

    Code:
    <object type="application/x-shockwave-flash" style="height: 80%; width: 80%;" data="mymovie.swf" >
    <param name="movie" value="mymovie.swf" >
    <param name="allowFullScreen" value="true" >
    <param name="wmode" value="transparent" >
    <div>
    <img src="myimage.jpg" alt="original image" title="">
    </div>
    </object>
    Or you can use swfobject:

    http://code.google.com/p/swfobject/

    which allows you to have alternate content in various ways.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2010
    Location
    spain
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the solution, very useful!

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
  •