Hi there I would like to find a code that displays IMG when the browser doesn't support flash. Thanks!
I think that is something like this (i don't test it): <script language="javascript"> <!-- // detect Flash plugin if (navigator.plugins["Shockwave Flash"]) { // if Flash is installed document.write('<embed src="flashApplication.swf" />'); } else { // if Flash isn't installed document.write('<img src="Image URL" alt="Alternative Image" />'); } --> </script> Tell me if it doesn't work. Bye!
Hey that works but you should really take it to the next level and use SWFobject. http://blog.deconcept.com/swfobject/ It is a really simple to use javascript that, amongst other things, allows you stick your alternate non-flash content in a <div> that is only displayed if the user doesn't have flash. But it does much more than that, it also gets rid of the stupid "Click to activate" thing in IE, allows super easy inline upgrade to the latest version of flash, and more... just checkout the site. I had been developing flash for years before I found swfobject and wish that I had known about it all along. And, of course, it is free. -P
jawanda, the script seems to be neat. I wonder how I can dispaly an image when flash can't display for whatever reason? what's the code?