EhuaN (易梦亦幻)
我正走在我的第二个十字口上......
查了一点资料,更新一下:

 

<SCRIPT type=text/javascript><!--
var i_flash;
var v_flash;
// Netscape 
if (navigator.plugins) {
for (var i=0; i < navigator.plugins.length; i++{
if (navigator.plugins[i].name.toLowerCase().indexOf("shockwave flash">= 0{
i_flash 
= true;
v_flash 
= navigator.plugins[i].description.substring(navigator.plugins[i].description.toLowerCase().lastIndexOf("flash "+ 6, navigator.plugins[i].description.length);
}

}

}

// --></SCRIPT>
<SCRIPT type=text/vbscript><!--
//IE
on error resume next
set f 
= CreateObject("ShockwaveFlash.ShockwaveFlash")
if IsObject(f) then
i_flash 
= true
v_flash 
= hex(f.FlashVersion())
end 
if
// --></SCRIPT>

 

<SCRIPT type=text/javascript>
<!--
if (i_flash) {
document.writeln(
"你已经安装了Flash插件")
if (v_flash) {
document.writeln(
" - 版本 " + v_flash);
}

}
 else {
document.writeln(
"你没有安装Flash插件")
}

// -->
</SCRIPT>



或者可以通过IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))的形式来检测支持的版本。

posted on 2006-03-28 17:38  ehuan  阅读(452)  评论(0)    收藏  举报