<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>
检查客户端是否有安装Flash插件 支持 火狐 IE
[ 2009年06月04日 11:33 | by Veidy.lei ] 2 评论 » | 阅读次数:1646
本文引用地址:
借来一用
[回复]
来支持下浏览器的多样性
[回复]