Help - Search - Members - Calendar
Full Version: Detect flash support
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
joyful
Hey!

Is there some way I could detect if the device/browser that is viewing my page supports flash?
If is does not I would like to output some simple HTML... If it does I would like to output my swf...

Could I do this with PHP? Or do I have to do it with a client side language such as javascript?

Thanks in advance! smile.gif

--
Christian J
There are various Flash detection javascripts, but of course if javascript is disabled they will not work. Some of them also rely on activeX being enabled when testing MSIE. In addition you may have to test which Flash plugin version the browser has installed.
pandy
Do you mean you want to serve a different page altogether or just add a few lines on the current page? If the latter, the OBJECT element has this functionality built in.
http://htmlhelp.com/reference/html40/special/object.html
If you also use EMBED it gets a little trickier, because NOEMBED fires only if EMBED isn't supported, not if Flash isn't.

More about this here:
http://www.alistapart.com/articles/flashembedcagematch/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.