Results 1 to 3 of 3

Thread: Check for Flash

  1. #1
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Exclamation Check for Flash

    Hi

    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.

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    i don't have exactly the function u need but,
    this code tell u that u must get the latest flash player
    Code:
    <!-- 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!
    </div>
    
    <!-- flowplayer configuration -->
    <script>
    
    
    // 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"
    });
    </script>
    may be you can customize it into the function that you need.
    good luck...

  3. #3
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Default

    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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •