📄 tree3.js
字号:
function D3(n,m){thisT3N23C=n;a=true;if(document.all["T"+n]){a=false}if(a)return;var obj=eval("T"+n);if(obj.style.display==""){obj.style.display="none";document.all["Ti"+n].src="img/tree/ti"+Oti+"x.gif"}else{if(m=="" || obj.outerText.length>6){obj.style.display="";}else{obj.style.display="";obj.innerHTML=" 正在读取!";thisNv=n;JScript3.src="tree/"+m}document.all["Ti"+n].src="img/tree/ti"+Oti+"i.gif"}}thisNv="";T3N23C5=100;T3N23C=new Array();thisT3N23C=100;function tree3(m){var a,b,c,d,f;a=m.split("\r\n");var t="";for(x=0;x<a.length;x++){T3N23C5++;if(a[x]=="")continue;if(a[x].substr(0,2)=="//")continue;b=a[x].split("`");if(b.length==1 || b[1]==""){d=b[0].replace(/[^\+]/g,"");t+=d.replace(/\+/g,"</div>")}else{f="";t+="<nobr>";c=b[0].substr(b[0].length-1,1);c2="";if(b[1].length<5)c2=3;d="-------------".substr(0,b[0].length-1);t+=d.replace(/-/g," ");if(b[3]==null)b[3]="";if(c=="+")t+="<img src='img/tree/ti"+Oti+"x.gif' height=16 align=absmiddle id=Ti"+T3N23C5+" onmousedown=D3('"+T3N23C5+"','"+b[3]+"')>";else if(c=="-")t+="<img src='img/tree/ti"+Oti+"o.gif' height=16 align=absmiddle>";else if(c=="*")t+="<img src='img/tree/ti"+Oti+"i.gif' height=16 align=absmiddle id=Ti"+T3N23C5+" onmousedown=D3('"+T3N23C5+"')>";if(b[2]==null || b[2]==""){a1=parent.Gt3(parent.O,"l3");if(a1=="")a1="#9900cc";t+="<span class=sp"+c2+" onmouseover=Mv(this) onmouseout=Mu(this) onmousedown=D3('"+T3N23C5+"','"+b[3]+"') style=color:"+a1+">"+b[1]+"</span></nobr><br>"}else{T3N23C[T3N23C5]=b[2];t+="<span class=sp"+c2+" onmouseover=Mv(this) onmouseout=Mu(this) onclick=T3N23run("+T3N23C5+") onmousedown=ndTree3('"+T3N23C5+"','"+b[3]+"')>"+b[1]+"</span></nobr><br>"}if(c=="+")t+="<div style='display:none' id=T"+T3N23C5+">";else if(c=="*")t+="<div id=T"+T3N23C5+">";if(b[3].length>3)t+="</div>"}}return t}function T3N23run(n){thisT3N23C=n;var a=T3N23C[n];var c="";if(a.indexOf("(")==-1){parent.fm23.location.href="about:blank";if(a.indexOf("#")!=-1)c="#";if(a.indexOf("?")!=-1)c="?";if(c!=""){a1=a.split(c);a=a1.join(c)}parent.fm23.location.href=a;return}eval(a)}function ndTree3(n1,n2){if(event.button==2){D3(n1,n2);return}}function Nv(n){var obj=eval("T"+thisNv);n=n.replace(/\^/gi,"\r\n");obj.innerHTML=tree3(n)}function Mv(n){n.style.backgroundColor="#CCD9FD"}function Mu(n){n.style.backgroundColor=""}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -