?? pop_new.js
字號:
function oo(obj){
return typeof(obj)=="string"?document.getElementById(obj):obj;
}
var state=0;
var showi=0;
var shoze=0;
var oldid="";
var http_ajax = false;
function show_list(sign,id){
// var sid=id.substr(5,id.length)
var sid= id + ".bokee.com";
e=oo(id);
var et=e.offsetTop;
var el=e.offsetLeft;
while(e=e.offsetParent){
et+=e.offsetTop;
el+=e.offsetLeft;
}
var subj="<a href=\"javascript:popPostMsg('"+sid+"');\">發送消息</a><a href=\"javascript:doAddFriend('"+ sid +"')\">加為好友</a><a href=\"http://id.bokee.com/showInfo.b?username="+sid+"\">查看資料</a>";
oo("show_lists").innerHTML=subj;
if(showi==0){
if(sign==1){
oo("arrow_l").style.right='';
oo("arrow_l").style.left=(el+51) + "px";
oo("arrow_l").style.top=(et) + "px";
oo("show_lists").style.right="";
oo("show_lists").style.left=(el) + "px";
oo("show_lists").style.top=(et+50) + "px";
oo("arrow_l").style.display='';
}else{
oo("arrow_l").style.display='none';
}
}else{
oo("arrow_l").style.display='';
oo("show_lists").style.display='';
oo("arrow_001").src="http://blogteam.bokee.com/pub/images/jiantou02.gif";
}
}
function show_cmm(id){
shoze=0;
if(oldid==""||id==oldid){
if(shoze==0){
if(oo("show_lists").style.display=="none"){
oo("show_lists").style.display='';
oo("arrow_001").src="http://blogteam.bokee.com/pub/images/jiantou02.gif";
showi=1;
shoze=0;
oldid=id;
}else{
oo("show_lists").style.display='none';
oo("arrow_001").src="http://blogteam.bokee.com/pub/images/jiantou01.gif";
showi=0;
shoze=0;
oldid="";
}
}
}
}
function show_fk(type,id,owner){
if(oo(id).className==""){
var op=1;
oo(id).className="cur_not";
if(id=="zxfk"){
oo("zjfw").className="";
op=1;
}else{
oo("zxfk").className="";
op=3;
}
send_request(op);
}
}
function Object_Onclick(){
if(shoze==1){
if(showi==1){
oo("arrow_l").style.display='none';
oo("show_lists").style.display='none';
oo("arrow_001").src="http://blogteam.bokee.com/pub/images/jiantou01.gif";
showi=0;
shoze=0;
oldid="";
}else{shoze=1;}
}
shoze=1;
}
window.document.body.onclick = Object_Onclick;
function send_request(op) {
var url="http://" +owner+"/visitor/visitor.fcg?owner="+owner.split('.')[0]+"&p=0&type=0&op="+op;
if(op==3)
url="http://"+owner+"/visitor/visitor.fcg?owner="+owner.split('.')[0]+"&op=3";
http_ajax = null;
http_ajax = getXMLHttpRequest();
http_ajax.onreadystatechange = processRequest;
http_ajax.open("GET", url, true);
http_ajax.send(null);
}
function processRequest() {
if(http_ajax.readyState==4){
if(http_ajax.status==200){
oo('fknr').innerHTML = http_ajax.responseText + '<div class="clear-b"></div>';
http_ajax=null;
}else{
http_ajax=null;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -