The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Detect flash support
joyful
post 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! smile.gif

--
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 27 2011, 02:01 PM
Post #2


.
********

Group: WDG Moderators
Posts: 7,731
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 28 2011, 04:01 AM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,767
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/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd November 2017 - 05:56 AM