js实现检测客户端有没有安装flash插件

1 篇文章 0 订阅
1 篇文章 0 订阅
<meta charset="utf-8">
<html>
<head>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<meta name="keywords" content="站长,网页特效,js特效,js脚本,脚本,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" />
<meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" />
<div id="float_top" style="width: 100%; height: 30px; position: fixed; top: 0;opacity:0.75;">
网页特效 检测是否安装Flash插件及版本号 站长特效网欢迎您。
</div>


</head>
<body style="height: 1000px;">
<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.name.toLowerCase().indexOf("shockwave flash") >= 0) {
i_flash = true;
v_flash = navigator.plugins.description.substring(navigator.plugins.description.toLowerCase().lastIndexOf("flash ") + 6, navigator.plugins.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插件")
  float_top.style.display="none";
  if (v_flash) {
  document.writeln(" - 版本 " + v_flash);
  }
  } else {
  document.writeln("<br /><br />站长特效提示您:你没有安装Flash插件")
  }
// -->
</SCRIPT>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值