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?
Printable View
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?
I'm looking for exactly that. You said it better!
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)
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.Code:if (navagator.plugIn("flash"){ //or whatever the correct method is... :)
document.writeln("<object>...</object>");
}else{
document.writeln("alternate_image.gif");
}
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