Detect flash support |
Detect flash support |
joyful |
Jun 27 2011, 12:38 PM
Post
#1
|
Advanced Member Group: Members Posts: 239 Joined: 15-November 10 Member No.: 13,147 |
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! -- |
Christian J |
Jun 27 2011, 02:01 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
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 |
Jun 28 2011, 04:01 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
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/ |
Lo-Fi Version | Time is now: 23rd April 2024 - 11:04 AM |