📄 inf.js
字号:
var hexmap = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");function hex(a){ if(a<256) return "%"+hexmap[a>>4]+hexmap[a&0xf]; else return hex(a>>8)+hex(a&0xf);}var yahoo_cans=true;function encodeUTF8(d) { var utft = "";var a=d.toString(); for(var n=0; n<a.length; n++) { var c=a.charCodeAt(n); if(c<128) utft += hex(c); else if(127<c && c<0x800) { utft += hex((c>>6)|192); utft += hex((c&63)|128); } else if(0x7ff<c && c<0x10000) { utft += hex((c>>12)|224); utft += hex(((c>>6)&63)|128); utft += hex((c&63)|128); } else if(0xffff<c && c<0x200000) { utft += hex((c>>18)|0xf0); utft += hex(((c>>12)&63)|128); utft += hex(((c>>6)&63)|128); utft += hex((c&63)|128); } else if(0x1FFFFF<c && c<0x4000000) { utft += hex((c>>24)|0xf8); utft += hex(((c>>18)&63)|128); utft += hex(((c>>12)&63)|128); utft += hex(((c>>6)&63)|128); utft += hex((c&63)|128); } else if(0x3FFFFFF<c && c<0x80000000) { utft += hex((c>>30)|0xfc); utft += hex(((c>>24)&63)|128); utft += hex(((c>>18)&63)|128); utft += hex(((c>>12)&63)|128); utft += hex(((c>>6)&63)|128); utft += hex((c&63)|128); } } return utft;}var qv=new Array();qv[0]="wd";qv[1]="p";qv[2]="q";qv[3]="keyword";qv[4]="kw";qv[5]="w";qv[6]="key";qv[7]="word";qv[8]="query";qv[9]="q1";qv[10]="name";var ud="undefined";var ef = false;var dc = doc();function b(a){ if( typeof encodeURIComponent=="function" ) { return encodeURIComponent(a.toString()); } else return encodeUTF8(a.toString());}function meta_keywords(name){ try { if(h()) return dc.getElementsByName(name)[0].getAttribute("content"); return document.getElementsByName(name)[0].getAttribute("content"); } catch(err) { return ""; }}var mknames=new Array("keywords","Keywords","KEYWORDS");function mk(){ var mk=""; try { for(var i=0;i<mknames.length;i++) { mk=meta_keywords(mknames[i]); if(mk!="") break; } mk=mk.replace(/[/| ,、 ]/g,','); if (mk.length>200) { var tmpstr = mk.substring(192,mk.length-1); var pos = tmpstr.indexOf(","); mk = mk.substring(0, pos+192); } } catch(err) { mk=""; } return mk;}function t(){ var t=""; if(h()) { try { t=dc.title; }catch(err) { t=""; } } else { t=document.title; } return t;}function u() { if(!h()) return document.location.href; if(ef) return dc.referrer; return dc.location.href;}function e() { var r=""; if(h()) { try { r=dc.referrer; }catch(err) { r=""; } } else r=document.referrer; if(r==null) r = ""; return r;} function s(a){ var r = a; if(r != "" && r != null) { for(var i=0; i<qv.length; i++) { var kw = new RegExp("[^1-9a-zA-Z]"+qv[i]+"=\([^&]*\)"); var k = r.match(kw); if(k != null) { kw = new RegExp("^[0-9]*$"); if(k[1].match(kw) == null) { return k[1]; } } } } return ""; }function k(){ var k=s(u()); if(k!="") return k; return s(e()); }function h(){ try { if(yahoo_iniframe==1 || yahoo_iniframe=="yes") { return true; } else { if(document.title == "") { return true; } else { return false; } } } catch(err) { } return false; }function doc(){ try { var x=top.document.location; return top.document; }catch(err) { ef=true; } for(var wd=window;;) { var p = wd.parent; try { var x=p.document.location; }catch(err) { return wd.document; } wd = p; }}function p(){ var ps = (typeof yahoo_type == ud)? "":"&t="+yahoo_type; ps += (typeof yahoo_size == ud)? "":"&s="+yahoo_size; ps += (typeof yahoo_bgcolor == ud)? "":"&bg="+yahoo_bgcolor; ps += (typeof yahoo_bordercolor == ud)? "":"&bd="+yahoo_bordercolor; ps += (typeof yahoo_titlecolor == ud)? "":"&tc="+yahoo_titlecolor; ps += (typeof yahoo_descolor == ud)? "":"&dc="+yahoo_descolor; ps += (typeof yahoo_linkcolor == ud)? "":"&lc="+yahoo_linkcolor; ps += (typeof yahoo_admargin == ud)? "":"&am="+yahoo_admargin; ps += (typeof yahoo_displink == ud)? "":"&l="+yahoo_displink; ps += (typeof yahoo_isbanner == ud)? "":"&ib="+yahoo_isbanner; ps += (typeof yahoo_adsnum == ud)? "":"&ad="+yahoo_adsnum; ps += (typeof yahoo_titlebgcolor == ud)? "":"&tb="+yahoo_titlebgcolor; ps += (typeof yahoo_desbgcolor == ud)? "":"&db="+yahoo_desbgcolor; ps += (typeof yahoo_simple == ud)? "":"&si="+yahoo_simple; ps += (typeof yahoo_rows == ud)? "":"&ro="+yahoo_rows; ps += (typeof yahoo_cols == ud)? "":"&co="+yahoo_cols; ps += (typeof yahoo_Halign == ud)? "":"&ha="+yahoo_Halign; ps += (typeof yahoo_Valign == ud)? "":"&va="+yahoo_Valign; ps += (typeof yahoo_kbgcolor == ud)? "":"&kbg="+yahoo_kbgcolor; ps += (typeof yahoo_kcolor == ud)? "":"&kc="+yahoo_kcolor; // linkspot1、2、3 ps += (typeof yahoo_lbgcolor == ud)? "":"&lbg="+yahoo_lbgcolor; ps += (typeof yahoo_rbgcolor == ud)? "":"&rbg="+yahoo_rbgcolor; ps += (typeof yahoo_styletype == ud)? "":"&st="+yahoo_styletype; ps += (typeof yahoo_had == ud)? "":"&had="+yahoo_had; ps += (typeof yahoo_vad == ud)? "":"&vad="+yahoo_vad; return ps;}var yahoo_withsign = 0;if(typeof yahoo_simple == ud){ yahoo_withsign = 1;}else if(yahoo_simple == 0){ yahoo_withsign = 1;}//UNION_DISP_MODEL****控制边框高度(t=-2)if(yahoo_withsign == 1){ if( typeof yahoo_type != ud ) { if(yahoo_type == -2) { if( yahoo_height < 67) { yahoo_height = 67; } else if(yahoo_height > 1500 ) { yahoo_height = 1500; } if(yahoo_width < 120 ) { yahoo_width = 120; } else if(yahoo_width > 8640 ) { yahoo_width = 8640; } } } else if((typeof yahoo_type == ud) && (typeof yahoo_size == ud)) { if( yahoo_height < 67) { yahoo_height = 67; } else if(yahoo_height > 1500 ) { yahoo_height = 1500; } if(yahoo_width < 120 ) { yahoo_width = 120; } else if(yahoo_width > 8640 ) { yahoo_width = 8640; } }}function cl() { yahoo_pid = ""; yahoo_type = ""; yahoo_size = ""; yahoo_bgcolor = ""; ahoo_bordercolor = ""; yahoo_titlecolor = ""; yahoo_descolor = ""; yahoo_linkcolor = ""; yahoo_admargin = ""; yahoo_displink = ""; yahoo_isbanner = ""; yahoo_adsnum = ""; yahoo_titlebgcolor = ""; yahoo_desbgcolor = ""; yahoo_simple = ""; yahoo_rows = ""; yahoo_cols = ""; yahoo_Halign = ""; yahoo_Valign = ""; yahoo_kbgcolor = ""; yahoo_kcolor = ""; yahoo_lbgcolor = ""; yahoo_rbgcolor = ""; yahoo_styletype = ""; yahoo_had = ""; yahoo_vad = "";}adu="http://cm.p4p.cn.yahoo.com/cm?"+"u="+b(u())+"&i="+yahoo_pid+"&w="+yahoo_width+"&h="+yahoo_height+p()+"&k="+k()+"&dt="+b(t())+"&r="+b(e())+"&mk="+b(mk());if(typeof yahoo_count==ud){window.yahoo_count=1;}else{window.yahoo_count=window.yahoo_count+1;if(window.yahoo_count>3)yahoo_cans=false;}try{if(!window.top.yahoo_tcount){window.top.yahoo_tcount=1;}else{window.top.yahoo_tcount = window.top.yahoo_tcount + 1;if(window.top.yahoo_tcount>3) yahoo_cans= false;}}catch(e){}if(yahoo_cans){document.write("<iframe width="+yahoo_width+" height="+yahoo_height+" border=0 frameborder=0 marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src="+adu.substring(0,2048)+"></iframe>");}cl();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -