本来开始我用IE6的浏览器将我这个网站加入到信任网站是可以的,后来我觉得IE6浏览器网站界面会乱,我就换成IE7,将网站加入信任网站,结果网站在加载ACTIVEX控件的时候会报上面那个错误,没办法,我就换成IE6。仍然报错,求高手解答,
我JS代码是 <html>
<head>
<SCRIPT language=JavaScript>
function Run(strPath) {
//exe.value=strPath;
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch (e){
alert(1);
//alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确,而且所需的库文件均可用。')
alert(e.message);
}
}
</SCRIPT>
</head>
<body>
请点击按扭:<br> <BUTTON class=button onclick="Run('file:///C:/Program%20Files/网络视频监控软件客户端(v4.01MD)/callExe.bat')">点击<BUTTON><br>
</body>
</html>
我JS代码是 <html>
<head>
<SCRIPT language=JavaScript>
function Run(strPath) {
//exe.value=strPath;
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch (e){
alert(1);
//alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确,而且所需的库文件均可用。')
alert(e.message);
}
}
</SCRIPT>
</head>
<body>
请点击按扭:<br> <BUTTON class=button onclick="Run('file:///C:/Program%20Files/网络视频监控软件客户端(v4.01MD)/callExe.bat')">点击<BUTTON><br>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货