如何使用SWFObject检测Flash [英] how to detect flash using SWFObject

查看:147
本文介绍了如何使用SWFObject检测Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了 SWFObject ,并将其包含在我的网站中。现在,我想根据用户浏览器中是否安装Flash来获取 true false 值他们访问我的网站。



我该怎么做?

解决方案

<$如果(swfobject.hasFlashPlayerVersion(9.0.18)){
//有Flash
}
else {
// no Flash
}

或者替换9.0.18 code>,您需要的最低版本

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.

How can I do this?

解决方案

if (swfobject.hasFlashPlayerVersion("9.0.18")) {
  // has Flash
}
else {
  // no Flash
}

or replace "9.0.18" with the minimum version you require

这篇关于如何使用SWFObject检测Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆