HTML\PHP : Flash Player detection technique -


When we insert Flash files into our websites, then it requires Flash Player on closed-core client machines, and The flash player prompts you to install ...

Is there a PHP code that I can use to view the flash player on the client machine and if not, instead of embeding the flash file, Inserting images ...

In my specific case Flash Flash is not so important ... it's only for cosmetics, an animation ... which I can not replace by a GIF or a simple JPEG ...

But I Can I do this

Can help with this.

You can simply show the content where the Flash object can not be displayed in Flash, and can indicate the script in it.

In the code:

  & lt; Html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; TestFlash & lt; / Title & gt; & Lt ;! - Import swfobject library - - & gt; & Lt; Script type = "text / javascript" src = "swfobject.js" & gt; & Lt; / Script & gt; & Lt ;! - Define which Divis (replaced by id) if Flash is present / - & gt; & Lt; Script type = "text / javascript" & gt; Swfobject.embedSWF ("myContent.swf", "flash1", "300", "120", "9.0.0"); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; We are testing some flash & lt; / H1> & Lt; Hour / & gt; & Lt; Div id = "flash1" & gt; & Lt ;! - This stuff will show that the flash is not on the machine / - & gt; & Lt; Img src = "/ img / image1.jpg" /> & Lt; / Div & gt; & Lt; Hour / & gt; & Lt; H2 & gt; This is a footnote & lt; / H2 & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Comments