📄 tree.htm
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<LINK REL="stylesheet" TYPE="text/css" HREF="style.css">
<SCRIPT LANGUAGE=javascript>
<!--
var prenode=""
function onClk(sid)
{
var o;
if (prenode!=sid)
{
if (prenode!="")
{
o=null;
o=document.all(prenode);
if (o!=null)
{ o.style.background=0xffffff;
o.style.color=0x000000;
o=null;
o=document.all("img"+prenode);
if (o!=null) o.src="image/folder.gif";
}
} //if (prenode!="")
o=null;
o=document.all(sid);
if (o!=null)
{ o.style.background="DarkBlue";
o.style.color=0xffffff;
o=null;
o=document.all("img"+sid);
if (o!=null) o.src="image/folder1.gif";
window.parent.frmView.listview.location.href="downlist.asp?id="+sid+"&txtfilter="+txtFilter.value;
}
prenode=sid;
curpath.value=sid;
} //(prenode!=sid) end if
}
function bf_onClk(sid,strfilter)
{
var o;
if (prenode!=sid)
{
if (prenode!="")
{
o=null;
o=document.all(prenode);
if (o!=null)
{ o.style.background=0xffffff;
o.style.color=0x000000;
o=null;
o=document.all("img"+prenode);
if (o!=null) o.src="image/folder.gif";
}
} //if (prenode!="")
o=null;
o=document.all(sid);
if (o!=null)
{ o.style.background="DarkBlue";
o.style.color=0xffffff;
o=null;
o=document.all("img"+sid);
if (o!=null) o.src="image/folder1.gif";
window.parent.frmView.listview.location.href="downlist.asp?id="+sid+"&txtfilter="+strfilter+"&bf=backforward";
}
prenode=sid;
curpath.value=sid;
} //(prenode!=sid) end if
}
function expand(sid,flag)
{
var o=null;
var src=null;
src=document.all("div"+sid);
if (src!=null)
{
o=document.all("pls"+sid);
if (o!=null) o.src="image/minus.gif";
src.style.display="block";
var tmps=src.innerText;
if ((tmps.indexOf("正在下载数据")<1&&tmps.indexOf("正在下载数据")!=-1)||flag==1)
window.parent.download.location.href="downtree.asp?hdc=div"+sid+"&id="+sid;
}
}
function plusclick(sid)
{ var o1;
var o=null;
o=document.all("div"+sid);
if (o!=null)
{
if (o.style.display!="block")
expand(sid,0);
else
{ o1=document.all("pls"+sid);
if (o1!=null) o1.src="image/plus.gif";
o.style.display="none";
}
}
}
function execmd()
{
var s,s1,s2,i,o;
var cmd=""; //一条命令执行完后继续执行的下一命令
s=txtcmd.value;
if (s!="")
{
i=s.indexOf(" ");
s1=s.substr(i+1);
s=s.substr(0,i);
switch(s)
{
case "expand":
i=s1.indexOf("/",1);
while (i>=0)
{
s2=s1.substr(0,i);
o=null;
o=document.all("div"+s2);
if (o.style.display!="block")
{
o1=null;
o1=document.all("pls"+s2);
if (o1!=null) o1.src="image/minus.gif";
o.style.display="block";
var tmps=o.innerText;
if (tmps.indexOf("正在下载数据")<1&&tmps.indexOf("正在下载数据")!=-1)
{ window.parent.download.location.href="downtree.asp?id="+s2+"&hdc=div"+s2+"&cmd=expand%20"+s1;
break;
}
}
i=s1.indexOf("/",i+1);
} //end do
if (i<0) {expand(s1,1);onClk(s1);} //已展开到所要求的最后一级目录,则单击,以显示右边的列表
break;
case "click":
onClk(s1);
break;
case "bfclick": //back or forward
i=s1.indexOf("|");
s2=s1.substr(i+1);
s1=s1.substr(0,i);
bf_onClk(s1,s2);
break;
case "refresh":
prenode="";
cmd="expand "+s1;
break;
} // end switch
if (cmd=="")
txtcmd.value ="";
else
txtcmd.value=cmd;
} //end if
window.setTimeout(execmd,200);
}
function bodyload()
{
execmd();
window.parent.download.location.href="downtree.asp?hdc=div/&id=/&cmd=click%20/C:";
}
//-->
</SCRIPT>
</HEAD>
<BODY onload='javascript:bodyload()'>
<input type="hidden" id=txtcmd name=txtcmd value="">
<input type="hidden" id=curpath name=curpath value="">
<TABLE WIDTH=100% height=100% BORDER=1 CELLSPACING=0 CELLPADDING=0>
<tr bgcolor=Silver >
<td height=18px id=leftdesc name=leftdesc nowrap valign=top>
所有文件夹(<INPUT type="text" class=BotLine id=txtFilter name=txtFilter value="">)
<img src=image/search.gif width=16px height=16px alt="搜索" style="cursor:hand" flag=0 align=absbottom
onclick='javascript:
var sid=curpath.value;
if (sid!=""&&txtFilter.value!="")
window.parent.frmView.listview.location.href="downlist.asp?id="+sid+"&txtfilter=sql>"+txtFilter.value;
'
>
</td>
</tr>
<tr><td id=tdSearch name=tdSearch height=1px valign=top>
<div class=lsdiv>
<!-- 搜索表单项,内容 -->
</div>
</td></tr>
<tr><td valign=top >
<div class=lsDiv>
<TABLE WIDTH=100% height=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr><td valign=top>
<img src=image/mycpu.gif> <span id=/ name=/
style="cursor:hand" onclick='javascript:onClk(this);'>我的电脑</span>
<div id=div/ name=div/ >正在下载数据...</div>
</td></tr>
</table>
</div>
</td></tr>
<tr><td bgcolor=Silver height=18px id=sta name=sta ss="" >
状态栏:
</td></tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -