IEホームページの設定とお気に入りの追加機能
1198 ワード
機能説明:お気に入りに会ったら、IEのホームページを設定します。
function addFav() { //
if (document.all) {
window.external.addFavorite('http://www.bdrongsheng.com', ' ');
}
else if (window.sidebar) {
window.sidebar.addPanel(' ', 'http://www.bdrongsheng.com', "" );
}
}
function SetHome(obj){
try{
obj.style.behavior='url(#default#homepage)';
obj.setHomePage('http://www.bdrongsheng.com');
}catch(e){
if(window.netscape){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}catch(e){
alert(" , !
“about:config” [signed.applets.codebase_principal_support] 'true'");
};
}else{
alert(" , 。
'http://www.bdrongsheng.com/' 。");
};
};
};
</script>