admin管理员组文章数量:1432602
I know there are a bunch of posts asking this question, but all of the answers point to either swfobject or the flash detection kit.
Is there a simple one or two liner in JavaScript just to check if Flash is installed or not? I don't want to have to include a whole js library if there's an simple way to do this.
I know there are a bunch of posts asking this question, but all of the answers point to either swfobject or the flash detection kit.
Is there a simple one or two liner in JavaScript just to check if Flash is installed or not? I don't want to have to include a whole js library if there's an simple way to do this.
Share Improve this question asked Aug 16, 2011 at 17:04 pepsipepsi 6,8757 gold badges46 silver badges74 bronze badges 5- 7 see stackoverflow./questions/998245/… – Horst Walter Commented Aug 16, 2011 at 17:05
- @Horst: Thanks.. that's what I'm looking for. Do you know if there are there any gotchas with this? Cross browser patibility? – pepsi Commented Aug 16, 2011 at 17:32
- Nothing right now which is additional to the ments in the above question. I only remember that when we have used it we had bined two checks for some reasons I cannot recall. This was prior the iPad age, nowadays I'd check against the mon [x]Pads if these are among the target audience. Maybe you bine the Flash and Browser check, e.g. once you know the browser is SAFARI/iPad you know it is not supporting Flash. – Horst Walter Commented Aug 16, 2011 at 17:56
- @Horst: Thanks. If you put this as an answer, I'll mark it accepted – pepsi Commented Aug 16, 2011 at 18:01
- I have summarized the ments in answer – Horst Walter Commented Aug 16, 2011 at 18:18
2 Answers
Reset to default 2As a summary of the above ments as requested:
The following SO answer is applicable: How can I detect if Flash is installed and if not, display a hidden div that informs the user?
Especially the ments / discussion of the above question are useful. I only remember that when we have used a Flash check we had bined two checks for some reasons I cannot recall. This was prior the iPad age, nowadays I'd check against the mon [x]Pads if these are among the target audience. Maybe you bine the Flash and Browser check, e.g. once you know the browser is SAFARI/iPad you know it is not supporting Flash.
Try to encapsulate the check so you can change / extend it if required (that was useful for us).
http://www.featureblend./flash_detect_1-0-4/flash_detect.js
I know you've seen it before; that's because it works.
本文标签: Oneliner JavaScript to detect if flash is installedStack Overflow
版权声明:本文标题:One-liner JavaScript to detect if flash is installed - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745605831a2665831.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论