Detect Flash Player 8 on users computer and display message if player is installed, link to Flash Player if not.

I would like to be able to detect if a user viewing my site has Flash Player 8 installed. If they do not have it then I would like to display a message and link to get the player. If they do have it then I would just like it to say FLash PLayer 8 detected and provide a link to the site. Any thoughts on how I can accomplish this. I already have some javascript that I got from somewhere that detects if Flash is installed but not verison 8(or higher whenever available) so some people still can't view it because they have verison 7 or earlier.  I would like to use the code I have and if anyone can tweak it so that it works for what I need that would be great. Here is the code I am currently using:


<script language="JavaScript" type="text/javascript">
<!--
 var useFlash = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
// -->
</script>

<script language="VBScript" type="text/vbscript">
<!--
 On error resume next
 useFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))
// -->
</script>

<script language="JavaScript" type="text/javascript">
<!--
if ( useFlash )
 {
   document.write("Flash Player Detected!");
 }
else
 {
   document.write("Flash Not Detected! Please <a href=macromedia.com>download</a> the latest plugin.");
 }
// -->
</script>

Thanks!
apriigemAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MontoyaProcess Improvement MgrCommented:
All you really have to do is select the Publish Settings and check the Detect version of Flash box.. it will also let you pick the version. Voila!

:)

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
apriigemAuthor Commented:
But i have a plain html page before you enter the site that has the flash, will this work for that page?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.