将你的网站设置为客户的信任站点--WSH方案
类别: ASP教程
将代码存为TrustedSite.js,在客户端执行
var SiteName="Acmnet"
SetTrustSite(SiteName);
WScript.Echo("You have accept \'http://acmnet/\' as your Trusted Site");
function SetTrustSite(StrSiteName)
{
var WshShell=WScript.CreateObject("WScript.Shell");
WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http", 2 ,"REG_DWORD");
TrustedSite_Value=WshShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http");
delete WshShell;
}
var SiteName="Acmnet"
SetTrustSite(SiteName);
WScript.Echo("You have accept \'http://acmnet/\' as your Trusted Site");
function SetTrustSite(StrSiteName)
{
var WshShell=WScript.CreateObject("WScript.Shell");
WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http", 2 ,"REG_DWORD");
TrustedSite_Value=WshShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http");
delete WshShell;
}
- 上一篇: 论坛中有新贴子功能的实现
- 下一篇: 将你的网站设置为客户的信任站点--VB方案
-= 资 源 教 程 =-
文 章 搜 索