如何使用SWFObject检测Flash [英] how to detect flash using SWFObject
本文介绍了如何使用SWFObject检测Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经下载了 SWFObject ,并将其包含在我的网站中。现在,我想根据用户浏览器中是否安装Flash来获取 true
或 false
值他们访问我的网站。
我该怎么做?
解决方案
<$如果(swfobject.hasFlashPlayerVersion(9.0.18)){
//有Flash
}
else {
// no Flash
}
或者替换 I have downloaded SWFObject, and included it in my website. Now I want to simply get a How can I do this? or replace 这篇关于如何使用SWFObject检测Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!9.0.18 code>,您需要的最低版本
true
or false
value based on whether or not Flash is installed in the users browser when they visit my site. 解决方案 if (swfobject.hasFlashPlayerVersion("9.0.18")) {
// has Flash
}
else {
// no Flash
}
"9.0.18"
with the minimum version you require
查看全文