有没有一种方法来测试,如果浏览器支持flash / Silverlight的? [英] Is there a way to test if a browser supports flash/silverlight?
问题描述
我正在与SL /闪图的应用程序,并想知道是否有一种方法来测试,如果它推到了浏览器支持的Silverlight或没有(iPad / iPhone的)。如果没有,那么我可以用某种AJAX图在它的位置。
I'm making an application with SL/flash charts and am wondering if there is a way to test if the browser it's being pushed to supports silverlight or not (ipad/iphone). And if it doesn't, then I can use some kind of AJAX chart in its place.
如果这是可能通过测试对主机交换平台,我将如何做到这一点?
If this is possible to interchange platforms by testing against the host, how would I do this?
推荐答案
有关闪光灯,你可以这样做:的 http://ppk.home.xs4all.nl/js/flash.html 或本:的 http://www.adobe.com/support/flash/how/shock/javaplugs/javaplugs04.html
For flash, you can either use this: http://ppk.home.xs4all.nl/js/flash.html or this: http://www.adobe.com/support/flash/how/shock/javaplugs/javaplugs04.html
Silverlight是这里讨论:<一href="http://stackoverflow.com/questions/119980/detect-via-javascript-whether-silverlight-is-installed">Detect通过JavaScript的Silverlight是否安装
Silverlight is discussed here: Detect via javascript whether Silverlight is installed
这篇关于有没有一种方法来测试,如果浏览器支持flash / Silverlight的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!