如何检测 Flash 是否已安装,如果未安装,则显示一个隐藏的 div 通知用户? [英] How can I detect if Flash is installed and if not, display a hidden div that informs the user?

查看:26
本文介绍了如何检测 Flash 是否已安装,如果未安装,则显示一个隐藏的 div 通知用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用 javascript/jQuery/etc 来检测 Flash 是否已安装,如果没有,则显示一个 div,其中包含通知用户他们需要安装 Flash 的信息?

How can I use javascript/jQuery/etc to detect if Flash is installed and if it isn't, display a div that contains information informing the user that they need to install flash?

推荐答案

使用 swfobject.如果已安装,它会用闪光灯替换 div.请参阅:http://code.google.com/p/swfobject/

Use swfobject. it replaces a div with the flash if it is installed. see: http://code.google.com/p/swfobject/

这篇关于如何检测 Flash 是否已安装,如果未安装,则显示一个隐藏的 div 通知用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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