有一个网友告诉我这个isComponentInstalled Method,但我不知怎么用啊

解决方案 »

  1.   

    有一个网友.   惭愧啊 :(<html XMLNS:CC>
    <style type=text/css>
    @media all { CC\:clientCaps {behavior:url(#default#clientCaps)}} 
    </style>
    <script>
    function check()
    {
    if (!(clientCaps.isComponentInstalled( "{8601658B-9360-00C1-AE00-00C03EA25D91}" ,"componentID" )))
       { 
    alert("没有安装组件")
        }
    }
    </script>
    </head>
    <body onload="check();" bgcolor="D6D3CE" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <CC:clientCaps id=clientCaps />
      

  2.   

    8601658B-9360-00C1-AE00-00C03EA25D91
    这个就是你注册的组件的classid其实,我觉得,可以用别一个办法,就是在你的机子上写入一个特殊的Cookie
    网站的流量统计时,
    在你的电脑里写入Cookiefunction setCookie()
    {
        var expires = new Date();
        expires.setTime(expires.getTime() + 365 * 24 * 60 * 60 * 1000);
        var the_cookie = "BaoBaoComputer;path=/;expires=" + expires.toGMTString();
        document.cookie = the_cookie;
    }
    网站的流量统计时加入检测是否为自己的电脑.function getCookie() {
      var cookieString = document.cookie;
      var start = cookieString.indexOf('BaoBaoComputer');
      if (start!=-1) alert('这是我的电脑啦.')
    }
      

  3.   

    我现在使用的方法就是写COOKIES,可我经常清历史记录,清一次就还要写一次。很麻烦的。谢谢你,灰豆宝宝。
      

  4.   

    你看一下这些对吗?测试本机是否安装FSO,可结果总是未安装.<html XMLNS:CC>
    <style type=text/css>
    @media all { CC\:clientCaps {behavior:url(#default#clientCaps)}} 
    </style>
    <script>
    function check()
    {
    if (!(clientCaps.isComponentInstalled( "{0D43FE01-F093-11CF-8940-00A0C90}" ,"componentID" )))
       { 
    alert("没有安装组件");
        }
    else
    {
    alert("已安装安装");
    }
    }
    </script>
    </head>
    <body onload="check();" bgcolor="D6D3CE" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <CC:clientCaps id=clientCaps />