如何用plupload检测flash并提示安装?
如果未安装 Flash 并且浏览到 http://www.plupload.com/example_custom.php 它将启动一个弹出框,提示用户下载 Adobe 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论