<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
//测试ActiveX方法
function DetectActiveX()
 {
  var obj = document.createElement("object");
  obj.id="activextest";
obj.classid="clsid:F87D94F2-4DB4-4A2C-981C-0E3250680536";
document.body.appendChild(obj);
    try
    {  ///判断progid
       var comActiveX = new ActiveXObject('FtpCliWeb.FtpCli');
    }
    catch(e)
    {
alert(e)
try
{ //判断clsid
   if(document.getElementById(obj.id).object)
   {
return true;
   }
}
catch(ex)
{
return false;
}
return false;   
    }
    return true;
 }
 
 function test()
 {
if(DetectActiveX())
{
alert("已安装网络虚拟光驱");
}
else
{
alert("尚未安装网络虚拟光驱");
}
 }</script>
</head>
<body onload="test()"></body>
</html>这里我写个脚本 来判断 一个 ocx 类  根据这个 来判断 软件是否被安装 结果 在新装的  IE8 上 测试 出这个问题   IE6没有这个问题 而有的 IE8 也没有问题