View Full Version : Check for Flash

08-19-2009, 08:44 PM

My website requires Flash Player. I'm looking or a simple script that will detect if you have it installed or not. If they have it, I want the script to take no action; if they don't, I want it to redirect them to a different page.

08-20-2009, 06:41 AM
i don't have exactly the function u need but,
this code tell u that u must get the latest flash player

<!-- include flowplayer JavaScript file -->
<script src="http://static.flowplayer.org/js/flowplayer-3.1.2.min.js"></script>

<!-- setup player container -->
<div id="player" style="width:425px;height:300px"></div>

<div id="info" class="box info">
You have Flash version 9.115 or above. Enjoy high quality video!

<!-- flowplayer configuration -->

// Flowplayer installation with Flashembed parameters
flowplayer("player", {

// our Flash component
src: "/swf/flowplayer-3.1.2.swf",

// we need at least this version
version: [9, 115],

// older versions will see a custom message
onFail: function() {
document.getElementById("info").innerHTML =
"You need the latest Flash version to view MP4 movies. " +
"Your version is " + this.getVersion()

// here is our third argument which is the Flowplayer configuration
}, {
clip: "http://blip.tv/file/get/KimAronson-TwentySeconds6421.m4v"

may be you can customize it into the function that you need.
good luck...:)

08-20-2009, 11:23 PM
Thanks for the help, but that's not quite what i'm looking for... I'm not using the 'Flowplayer' and would rather not link of of other people's (copyrighted) JavaScript. I just need a script that will allow me to detect if a visitor has Flash Player and, if not, send them to a different page. Understand?