javascript检测浏览器flash版本的实现代码

时间:2011-12-06    点击:83   
记录:
复制代码 代码如下:

(function(){
ver has=0, ver=0;
try{
has=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(has) {
ver = +(has.GetVariable("$version").match(/\d+/));
}
}
catch(e){
has=navigator.plugins["Shockwave Flash"];
if(has) {
ver = +(has.description.match(/\d+/));
}
}
console.log(ver);//0即无插件
})()
5个javascript的数字格式化函数分享
TimergliderJS 一个基于jQuery的时间轴插件
浅析Prototype的模板类 Template
字符串的replace方法应用浅析
js滚动条回到顶部的代码
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved