たった1行でブラウザにFlashがインストールされているか判定するJSコード
1行っていうのはアレですが、、
下記のisFlashInstalledを宣言しておいて
var isFlashInstalled=function(){if(navigator.plugins["Shockwave Flash"]){return true;}try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true;}catch(a){return false;}}();
if文で使えます
if ( isFlashInstalled ) {
alert('Flash Player is installed');
} else {
alert('Flash Player is not installed');
}
