Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Carl Yestrau's JavaScript Flash Detection Library, here:
http://www.featureblend.com/javascript-flash-detection-library.html
... may be what you're looking for.
SWFObject is very reliable. I have used it without trouble for quite a while.
I know this is an old post, but I've been looking for a while and didn't find anything.
I've implemented the JavaScript Flash Detection Library. It works very well and it is documented for quick use. It literally took me 2 minutes. Here is the code I wrote in the header:
You could use closure compiler to generate a small, cross-browser flash detection:
which results in the following "compiled" code:
Perhaps adobe's flash player detection kit could be helpful here?
http://www.adobe.com/products/flashplayer/download/detection_kit/
Minimum version I've ever used (doesn't check version, just Flash Plugin):