Commonly used methods:
There are many detections The PLUGIN method, because you cannot solve this problem with just one method, there are so many methods
1. Built-in detection
IE on NN and MAC cannot use the following detection, only on WIN IE can
1. Install on demand
If the install on demand option in IE's Tools - Internet Options - Advanced - Browsing is enabled, Flash will be downloaded from the MS website when the browser needs it. Player ActiveX control
If it does not take effect and you enter the webpage directly without installing PLUGIN, you will see a small ICON like a cracked square. Clicking it can also take you to install it
2. In HTML The classid and codebase attributes in the OBJECT tag
classid is the identification of ActiveX control, for example, FLASH PLAYER is:
clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
codebase is the address to download the plug-in, for example FLASH4 (if the browser detects that the number after version is lower than the version you already have, it will not install it):
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=4,0,2,0
These HTML tags will be automatically added when you insert them into PUBLIC or DW in FLASH
The browser will detect these tags when executing them
2. Use SCRIPT This method of detection
is to get rid of the limitations of the previous method, such as the behavior called "Check Plug-in" in DW.
This method still cannot be used on some machines that cannot execute SCRIPT, such as Versions before IE4.5 on MAC, IE on WIN31.
There are also some users who turn off SCRPIT execution.
3. Use FLASH to detect
If the user doesn’t even execute SCRPIT, they can only use this trick. This is also the method used by MM herself.
Make a detection HTML, put a SWF in it, with only one sentence GetURL ("your real page")
At the same time, put
of the HTML ="10; URL="Page where FLASH is not installed">
If the SWF does not take you to the real page within 10 seconds, the detected HTML will take you to the page where FLASH is not installed
4. The last method is to let users choose
This is also the most common. Many websites have an entrance page, and below there is a small ICON for installing PLUGIN
<script> <br>//自己总结的 <br>//IE中判断是否安装插件 <br>var swf; <br>function IE_Flash() <br>{ <br>try <br>{ <br>var swf=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); <br>alert("已安装插件"); <br>} <br>catch(e) <br>{ <br>alert("没有安装插件"); <br>} <br>} <br>//FireFox,Chrome中判断是否安装插件 <br>function FF_or_Chrome_Flash() <br>{ <br>var swf=navigator.plugins["Shockwave Flash"]; <br>(swf)?alert("已安装插件"):alert("没有安装插件"); <br>} <br></script>