// javascript document //��ϊ��ҳ function sethomepage(obj){ var aurls=document.url.split("/"); var vdomainname="http://"+aurls[2]+"/"; try{//ie obj.style.behavior="url(#default#homepage)"; obj.sethomepage(vdomainname); }catch(e){//other if(window.netscape) {//ff try { netscape.security.privilegemanager.enableprivilege("universalxpconnect"); } catch (e) { alert("�˲�����������ܾ���\n�����������ַ�����롰about:config�����س�\nȼ��[signed.applets.codebase_principal_support]����ϊ'true'"); } var prefs = components.classes['@mozilla.org/preferences-service;1'].getservice(components.interfaces.nsiprefbranch); prefs.setcharpref('browser.startup.homepage',vdomainname); } } if(window.netscape)alert("ff"); } //�����ղ� function addfavorite(){ var aurls=document.url.split("/"); var vdomainname="http://"+aurls[2]+"/"; var description=document.title; try{//ie window.external.addfavorite(vdomainname,description); }catch(e){//ff window.sidebar.addpanel(description,vdomainname,""); } }