在网上查了很多,都不好使,最后自己查资料写了下面的方法,代码如下:
if(isIE){
try{
var swf1 = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
alert('安装了Flash');
}
catch(e){
alert('没有安装Flash');
}
}
else {
try{
var swf2 = navigator.plugins['Shockwave Flash'];
if(swf2 == undefined){
alert('没有安装Flash');
}
else {
alert('安装了Flash');
}
}
catch(e){
alert('没有安装Flash');
}
}
207

被折叠的 条评论
为什么被折叠?



