A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Detect no flash player, use images. Possible??

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Location
    Virginia, USA
    Posts
    437
    I need to find a javascript that detect flash player, if there is no flash player then use image instead of flash. (I don't want to redirect, just want it all in one page)

    Can someone help me out?

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Location
    Lynchburg, Virginia
    Posts
    23

    Smile That's what I'm after too!!

    I'm looking for exactly that. You said it better!

  3. #3
    Didn't do it. japangreg's Avatar
    Join Date
    Mar 2001
    Location
    \o/ |o| |o_ /o\
    Posts
    784
    Hey, RapidCarbon, Johnny Ringo. I have been thinking about this too for a day or so, and thought I'd share a few ideas with you and hopefully attract the attention of someone who can give a definative answer to this.

    I'm currently dealing with .ASP pages (for the first time) and have begun to find them very useful. One idea I had was to have a javascript or vb function as a server-side include to check for the plug-in, then write the HTML for either the SWF or a GIF before it's delivered to the visitor. Something like: (note: off the top of my head, not intended as complete oor functioning code)
    Code:
    if (navagator.plugIn("flash"){ //or whatever the correct method is... :)
    document.writeln("<object>...</object>");
    }else{
    document.writeln("alternate_image.gif");
    }
    As I said, I've only begun to play with ASP, so this might not even be possible, but I thought I would suggest it anyway.

    I haven't tried it, but do you think it would be possible to do the same without using it as a SSI? In other words, would the above code (or a correct version of it) function as a script in an HTML file?

    Inquiring minds want to know...

    hth
    japangreg

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center