/    Sign up×
Community /Pin to ProfileBookmark

Javascript call to find if Flash is installed

Hi there,

I’m not a web developer, but a web editor who has limited technical experience (compared to some of you guys).

I’ve been asked to change our company website, so that if viewed on an iphone or a machine with Flash disabled, an alternate or fallback image will appear.

I’ve found several articles, including ones on Adobe, but cannot get anything to work…arghh!

I think I’m right in assuming I need to put a Javascript call to check for Flash in the HTML of the page, but then to also add another line of code that will point the browser to the fallback image if Flash isn’t present.

Can anyone help and in not too technical terms please.

Thanks.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@infinityspiralSep 07.2011 — You should really just use swfObject for this. Some code monkeys totally did all the work on this wheel for you already. This page has examples and does exactly what you describe:

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

Success!

Help @morgangr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...