如何检测Flash Player是否在使用JavaScript的浏览器中被禁用? [英] How can I detect if Flash Player is disabled in a browser using JavaScript?

查看:187
本文介绍了如何检测Flash Player是否在使用JavaScript的浏览器中被禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何检测浏览器中是否安装了Flash播放器。我正在使用 swfobject 的hasFlashPlayerVersion()函数。但是,我似乎无法找到任何文档如何检测插件是否安装,只是禁用。我在 Flash Player检测工具包中看不到任何文档它可以检查插件是否被启用。

I know how to detect if Flash player is installed in a browser. I'm using the hasFlashPlayerVersion() function of swfobject for that. However, I can't seem to find any documentation on how to detect if the plug-in is installed and just disabled. I didn't see any documentation in the Flash Player Detection Kit that checks if the plug-in is enabled either.

推荐答案

你可以在不可见的swf中调用一个javascript调用,浏览器的JavaScript。如果发生超时,那是因为浏览器没有安装Flash播放器,或者Flash播放器已被禁用。

You could make a javascript call in an invisible swf that communicates with the browser's javascript. If a timeout occurs, then it is because the browser does not have flash player installed, or the flash player has been disabled.

getURL("javascript:jsfunction();");

这篇关于如何检测Flash Player是否在使用JavaScript的浏览器中被禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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