可以用下面一个来自google的函数,

function _uFlash() {
var f = "-", n = navigator;
if (n.plugins && n.plugins.length) {
    for (var ii = 0; ii < n.plugins.length; ii++) {
          if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {
              f = n.plugins[ii].description.split('Shockwave Flash ')[1];
              break;
         }
    }
} else if (window.ActiveXObject) {
     for (var ii = 10; ii >= 2; ii--) {
        try {
           var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");
           if (fl) {
               f = ii + '.0';
              break;
           }
        } catch (e) {
       }
   }
}
return f;
}

//alert(_uFlash());

来源:http://www.doself.com/showlog-21.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2022-02-22
  • 2022-12-23
  • 2021-12-15
  • 2022-01-15
  • 2021-09-13
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案