研讨生部(研究生会部长发言)

function dosuba128210a()
{
try{
var ua = navigator.useragent.tolowercase();
if(ua.indexof(“msie 8”)>-1)
{
window.external.addtofavoritesbar(document.location.href,document.title,””);//ie8
}else if(ua.tolowercase().indexof(“rv:”)>-1)
{
window.external.addtofavoritesbar(document.location.href,document.title,””);//ie11+
}else{
if (document.all)
{
window.external.addfavorite(document.location.href, document.title);
}else if(window.sidebar)
{
window.sidebar.addpanel( document.title, document.location.href, “”);//firefox
}
else
{
alert(hotkeysa128210a());
}
}

}
catch (e){alert(“无法主动添加到保藏夹,请运用 ctrl + d 手动添加”);}
}
function hotkeysa128210a()
{
var ua = navigator.useragent.tolowercase();
var str = “”;
var iswebkit = (ua.indexof(‘webkit’) != – 1);
var ismac = (ua.indexof(‘mac’) != – 1);
if (ua.indexof(‘konqueror’) != – 1)
{
str = ‘ctrl + b’; // konqueror
}
else if (window.home || iswebkit || ismac)
{
str = (ismac ? ‘command/cmd’ : ‘ctrl’) + ‘ + d’; // netscape, safari,
研讨生部(研究生会部长发言)插图
icab, ie5/mac
}
return ((str) ? ‘无法主动添加到保藏夹,请运用’ + str + ‘手动添加’ : str);
}
function sethomepagea128210a()
{
var url = document.location.href;
if (document.all)
{
document.body.style.behavior=’url(#default#homepage)’;
document.body.sethomepage(url);
}
else if (window.sidebar)
{
if(window.netscape)
{
try{
netscape.security.privilegemanager.enableprivilege(“universalxpconnect”);
}catch (e){
alert(“该操作被阅读器回绝,假定想启用该功用,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true”);
}
}
var prefs = components.classes[‘@mozilla.org/preferences-service;1’].getservice(components. interfaces.nsiprefbranch);
prefs.setcharpref(‘browser.startup.homepage’,url);
}
else
{
alert(“阅读器不撑持主动设为主页,请手动设置”);
}
}

设为主页

参加保藏

Related Posts

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

|京ICP备18012533号-382