Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

show image instead of flash if flash not installed

Posted on 2013-01-30
3
Medium Priority
?
654 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

886 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