如何使用 SWFObject 检测 Flash [英] how to detect flash using SWFObject
本文介绍了如何使用 SWFObject 检测 Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经下载了 SWFObject,并将其包含在我的网站中.现在,我只想根据用户访问我的网站时浏览器中是否安装 Flash 来获取 true
或 false
值.
I have downloaded SWFObject, and included it in my website. Now I want to simply get a 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"
替换为您需要的最低版本
or replace "9.0.18"
with the minimum version you require
这篇关于如何使用 SWFObject 检测 Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文