如何用plupload检测flash并提示安装?

发布于 2025-01-01 02:32:48 字数 863 浏览 4 评论 0原文

如果未安装 Flash 并且浏览到 http://www.plupload.com/example_custom.php 它将启动一个弹出框,提示用户下载 Adob​​e Flash。

我在 http://code.google.com/p/swfobject/wiki/ 上阅读了一些内容文档 建议执行类似以下操作:

swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");

很公平,但是我意识到 plupload 每次刷新页面时都会为其 flash 对象分配随机 id。这使得无法确定 swfobject 的 id。例如:

<object width="100%" height="100%" style="outline:0" data="/flash/plupload/plupload.flash.swf" type="application/x-shockwave-flash" id="p16ko0lvqt1ad01ovuh441kal1cc40_flash">...</object>

注意到

p16ko0lvqt1ad01ovuh441kal1cc40_flash

上面的内容了吗?

我现在的方向正确吗,还是应该采取不同的方法?您的想法将不胜感激。

If no flash is installed and one browses to http://www.plupload.com/example_custom.php it'll launch a popup box prompting the user to download Adobe Flash.

I did some reading at http://code.google.com/p/swfobject/wiki/documentation which suggests doing something like:

swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");

Fair enough, however I realize that plupload assigns random id's for its flash object every time the page is refreshed. Which makes it impossible to determine the id for swfobject. For example:

<object width="100%" height="100%" style="outline:0" data="/flash/plupload/plupload.flash.swf" type="application/x-shockwave-flash" id="p16ko0lvqt1ad01ovuh441kal1cc40_flash">...</object>

Notice the

p16ko0lvqt1ad01ovuh441kal1cc40_flash

above?

Am I on the right track here, or should I take a different approach? Your thoughts will be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文