Topic: javascript to detect flash enable or disabled..

Hi All,

In my recent project i have to figure out with the help of javascript that flash in disabled or enabled...
if flash is enabled flash movies starts otherwise need to display a static gif file instead of flash movie...


any pointer or help is highly appriciated..

Thanks
Muckoda Baron

Help people to get helped by people

Re: javascript to detect flash enable or disabled..

I think the best solution is SwfObject (used to be called FlashObject): http://blog.deconcept.com/swfobject/

Basically, you create a [div] tag and put your gif in it. Then you use SwfObject to insert your flash in the [div]. If the user has Flash, SwfObject will replace the gif with the swf. If the user doesn't have flash (you can even specify the version of flash), then the gif will remain.

I use this on our home page at http://www.dts.edu/ for the graphic rotator.

Re: javascript to detect flash enable or disabled..

thanks alot! John seems work for me... smile

Help people to get helped by people