Thread: Flash detection

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    22
    Rep Power
    0
    How can I use Javascript to detect whether the browser supports Flash, and if not redirect to another site. This could be done in either Javascript (prefered), or using server side scription (ASP, PHP, etc.) Any site with an article would be cool!

    Cheers,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Manchester, UK
    Posts
    47
    Rep Power
    14
    Check out http://javascript.internet.com/user-...ge.html#source
    The section on check plugin redirect says:


    <!-- ONE STEP TO INSTALL PLUGIN PAGE:

    1. Add the first code to the BODY of your HTML document -->

    <!-- STEP ONE: Add the first code to the BODY of your HTML document -->

    <BODY>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original: Mattias Jonsson (gt96mjn@blg.du.se) -->
    <!-- Web Site: http://www.du.se/~gt96mjn -->

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    var plugin=navigator.plugins["Shockwave Flash"];
    if (plugin) {
    window.location=('http://www.page.with.plugin.com');
    }
    else {
    window.location=('http://www.page.without.plugin.com');
    }
    // End -->
    </script>

    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>

    <!-- Script Size: 0.72 KB -->

    Adam M
    adam@chamele.com

Similar Threads

  1. Flash detection that works everywhere...
    By needafixx in forum Flash Help
    Replies: 2
    Last Post: January 15th, 2004, 12:20 PM
  2. Flash Detection
    By mizzory in forum Flash Help
    Replies: 1
    Last Post: August 20th, 2002, 02:04 PM
  3. Flash Detection
    By mizzory in forum PHP Development
    Replies: 4
    Last Post: August 20th, 2002, 12:34 AM
  4. flash detection doesn't work for NS4.7
    By valeria_vi in forum Dev Shed Lounge
    Replies: 3
    Last Post: September 24th, 2001, 02:36 PM
  5. Really really good Flash detection script
    By peterbe in forum HTML Programming
    Replies: 3
    Last Post: September 5th, 2000, 09:46 PM

IMN logo majestic logo threadwatch logo seochat tools logo