Solved

show image instead of flash if flash not installed

Posted on 2013-01-30
3
613 Views
Last Modified: 2013-02-02
Hi I want to show an image if flash is not installed (eg on a iphone) and want it to be w3c safe so far have

<object type="application/x-shockwave-flash"
data="name.swf"
width="100" height="100">
<param name="movie" value="name.swf" />
<param name="quality" value="high"/>
<param name="wmode" value="transparent"/>
</object>

How do i do it on all browsers, have seen things that are ment to work on some browsers but do not work on all.
some say to do is in vb.net some in java by hiding the tag and some by adding the image in the object tag but this does not work. Please help.
0
Comment
Question by:taz8020
3 Comments
 
LVL 19

Expert Comment

by:quizengine
ID: 38835230
swfobject gives you a good way to do this.

You have a div that contains your *alternate* content (i.e. the content to show if Flash is NOT installed). The swfobject code attempts to place the Flash content (swf) inside this div, thus replacing your alternate content.

See http://blog.deconcept.com/swfobject/

and search the page for 'so.write' (without the quotes) to see the part of the blog post that deals with this.

The swfobject.js code is open source and there are download links at the end of the blog post
0
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
ID: 38835382
0
 
LVL 3

Author Closing Comment

by:taz8020
ID: 38847510
I did try this, I dont know why this did not work for me at first.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question