JS中实现自动添加一个可信任站点问题? 本帖最后由 vvccstar125 于 2010-11-19 09:47:15 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><script>function addsite(){var WshShell=new ActiveXObject("WScript.Shell");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net","");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net\\www","");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net\\www\\http","2","REG_DWORD");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\","");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\http","2","REG_DWORD");WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\:Range","192.168.1.1");}</script><title>ss</title></head><body><input type="button" value="添加为可信任站点" onclick="addsite()" />dddd</body></html>这样可以么? 在IE浏览器的受信任的站点里自定义极别启用[对未标记为安全可执行脚本的activex初始化] 求一个正则 struts+jquery报错$("#remotetabs").tabs is not a function什么情况啊? 脚本问题 求助,如何用js判断时间旅行是否冲突 如何得到 cell 的 contenWidth? 请教如何用输入框搜索关键字母 很久没有来了呵呵。 推荐 JScript 加密(混淆)器 怎么判断Menu.xml中MainMenu标签下SubMenu标签的个数? 关于模态窗口父窗口刷新后保存子窗口参数的问题 如何刷新父窗口的父窗口? 请问纯js或者jquery框架能模拟窗口的滑动条滑动吗 谁能告诉我怎么在JSP页面上加载华表
<head>
<script>
function addsite(){
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net\\www","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\china.net\\www\\http","2","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\http","2","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\:Range","192.168.1.1");
}
</script>
<title>ss</title>
</head>
<body>
<input type="button" value="添加为可信任站点" onclick="addsite()" />
dddd
</body>
</html>
这样可以么?