本帖最后由 vvccstar125 于 2010-11-19 09:47:15 编辑

解决方案 »

  1.   

    <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>
    这样可以么?
      

  2.   

    在IE浏览器的受信任的站点里自定义极别启用[对未标记为安全可执行脚本的activex初始化]