如何检测一下某台计算机上是否安装某个ActiectX DLL(我只是检测一下,并不真开使用这个组件) 有一个网友告诉我这个isComponentInstalled Method,但我不知怎么用啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有一个网友. 惭愧啊 :(<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 /> 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('这是我的电脑啦.')} 我现在使用的方法就是写COOKIES,可我经常清历史记录,清一次就还要写一次。很麻烦的。谢谢你,灰豆宝宝。 你看一下这些对吗?测试本机是否安装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 /> 为什么要判断当前页面是否为指定html文件? Jquery Ligerui LigerGrid 实现时间选择控件,不要日期的那种, 求个简单的JS判断网址代码 新手请教FF与IE下节点问题 按下回车键,实现光标移动到按钮上,为什么会自动点击? 请教大虾:如何给<br>元素设置背景? 高手请来帮下忙啊~费城紧急 鼠标右键菜单的问题 文本框提示信息 急,这个功能到底能不能实现? onmouseout 请问各位大虾,如何用js在网页上实现点击按扭后打开一个选择文件的对话框来啊?
<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 />
这个就是你注册的组件的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('这是我的电脑啦.')
}
<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 />