📄 index.js
字号:
/* index.js
* Copyright 2002 - 2006 BlogDriver.com,Bokee.com, All Rights Reserved
* File Authors: 怨天怨地
*/
function addBlogMark(title,url,centent){
void(
keyit=window.open('http://blogmark.bokee.com/jsp/key/quickaddkey.jsp?k='
+encodeURI(title)+'&u='+encodeURI(url)+'&c='+encodeURI(centent),'keyit','scrollbars=no,width=500,height=430,status=no,resizable=yes'));
keyit.focus();
}
function addFavorite(favName,url){
var blogID=getBlogID();
if(blogID==null){
alert('您还没有登陆,请先登陆后再收藏!');
window.location.href='http://reg.bokee.com/account/web/login.jsp?url='+ window.location.href;
return;
}
var frmObj=document.createElement("IMG");
frmObj.src='http://'+blogID+'/list/addDiaryFavorite.b?favorite.blogId='+blogID+'&favorite.favName='
+favName+'&favorite.url='+url+'&favorite.property=1';
frmObj.style.display='none';
document.body.appendChild(frmObj);
alert('操作成功!');
}
function setImg(){
var objs=document.getElementsByTagName("img");
for(var i=0;i<objs.length;i++){
if(objs[i].id == null || objs[i].id!='systemImg'){
if(parseInt(objs[i].width)>512){
objs[i].width='512';
objs[i].style.width='512';
objs[i].style.height='';
}
}
}
}//google search function submitFormWithChannel(channelname) { document.gform.channel.value=channelname; document.gform.submit(); return; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -