javascript - 有什么方法可以测试移动浏览器是否支持使用网络技术的 Flash?

标签 javascript flash mobile-browser

我知道大多数移动浏览器不支持 javascript,

我该如何检查?

最佳答案

如果它没有帮助,请不要反对我;)但这似乎是相关的: http://kb2.adobe.com/cps/140/tn_14086.html

来自网站(编辑和删节):

This approach to Flash Player detection relies on two key elements; a Flash plug-in "sniffer" that uses the GetURL action which only the Flash 4 Player will respond to, and an HTML page with a META refresh tag.The index page of the site will use a Flash movie to detect for version 4 of the Flash Player and direct those browsers to the Flash 4 content. If the user hits the index page either without the Flash Player or with version 2 or 3 of the player, the META refresh tag will automatically send them to a non-Flash page which will prompt them to download version 4 of the Flash Player. This scheme works without using any JavaScript, making it both simpler and more browser-compatible.

Creating a Flash 4 "sniffer":

  1. Create a new Flash movie ...

  2. In Modify > Movie set the movie's dimensions to 18px wide and 18px high. This is the smallest a Flash movie can be created ...

  3. Insert keyframes on frame 1 and 2. Select frame 2 and choose Modify > Frame. In the Frame Properties dialog box attach a Get URL action. In the URL field put the URL to the HTML page that will make up the real Flash site. Most importantly: put the URL in quotes and set the Get URL field to expression. This assures that only the Flash 4 player will execute this action.

  4. Add another action to this list - Stop. Select OK.

  5. Using the Flash 4 Publish feature, create an HTML file using the Flash 4 only (default) template. This will be the index.html page for this Flash site.

Creating a META refresh tag in a HTML document:

  1. Open the index.html document in an editor such as Macromedia's Dreamweaver.
  2. In the <HEAD> tag of the HTML document create a META refresh tag ... <META HTTP-EQUIV="Refresh" CONTENT="10; URL=alternative.html"> ... The file name "alternative.html" should be substituted with the name of your page that contains the alternate content, in the case that the user does not have the Flash 4 Player installed.
  3. [Create the alternative page - alternative.html - or whatever you've named it]
  4. [Add appropriate content and links to the relevant flash download pages]

关于javascript - 有什么方法可以测试移动浏览器是否支持使用网络技术的 Flash?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3336312/

相关文章:

javascript - 将 Raphael (SVG) Canvas 放在其他部分后面以使其可点击?

ios - 音频和动画在使用 Flash cs6 创建的 iPad 应用程序上不同步

javascript - 有没有更快的方法来识别移动应用程序是否存在?

javascript - 如何使用 promises 正确处理 express.js 中的错误(字符串或对象)

javascript - 如何制作 OR 选择器而不是 AND 语句

php - Google map 的加载屏幕

ios - Adobe AIR for iOS - 设备空间不足

javascript - 如何从 javascript 启动 flash 视频?

java - J2ME 小程序 - 在移动设备的 Web 浏览器中运行 Java

javascript - 如何知道移动浏览器中的无障碍软件已打开?