JS文件
-------------------------------------
var isIE = true;
var imgUp = "images/arrowUp.gif" ;
var imgDn = "images/arrowDn.gif" ;
function expandIt( head, fExpandOnly )
{
var bulletImg ;
var allCol = "document." + ( isIE ? "all." : "" ) + head ;
var parentDiv = eval( allCol + "Parent" );
var childDiv = eval( allCol + "Child" );
if ( isIE )
{
if ( parentDiv )
bulletImg = parentDiv.children( 0 ).children( 'imEx' );
if ( childDiv )
{
if ( childDiv.style.display == "block" && (!fExpandOnly) )
{
childDiv.style.display = "none" ;
if ( bulletImg )
bulletImg.src = imgUp ;
}
else
{
childDiv.style.display = "block" ;
if ( bulletImg )
bulletImg.src = imgDn ;
}
}
}
else
{
if ( parentDiv )
bulletImg = parentDiv.document.images[ 'imEx' ];
if ( childDiv )
{
if ( childDiv.visibility == "hide" )
{
childDiv.visibility = "show" ;
if ( bulletImg )
bulletImg.src = imgDn ;
}
else if ( ! fExpandOnly )
{
childDiv.visibility = "hide";
if ( bulletImg )
bulletImg.src = imgUp ;
}
}
}
return false ; // cancels event
}
function doClick ( )
{
el = event.srcElement;
while ( el && el.tagName != "A" )
{
el = el.parentElement ;
}
if ( ! el ) return ;
if ( el.target != "main" ) return ;
hiliteSel( el );
}
var prevSel = null ;
function hiliteSel ( selLink )
{
var selColor = "red" ;
if ( prevSel )
{
prevSel.style.color = prevSel.prevColor ;
}
prevSel = selLink ;
prevSel.prevColor = selLink.style.color ;
selLink.style.color = selColor ;
}
function init() {
document.onclick = doClick ;
expandIt("head2");
//hiliteSel(ttt);
// parent.frames("Main").location.href = "/gtc/programMgr.html";
}
if ( screen.colorDepth > 8 )
{
// document.write( "<STYLE>BODY{background-image:url(/images/ai/tile_nav.jpg);}</STYLE>" );
}
var licenseID ='01-0006-0038-69648' ;
var pendingChanges =false ;
-------------------------------------------------------------------------------------
HTML文件
----------------
<HTML>
<HEAD>
<TITLE></TITLE>
<LINK REL=stylesheet HREF="script/toc.css" TYPE="text/css">
<SCRIPT LANGUAGE="JavaScript" src="script/AdminTree.js"></script>
<STYLE TYPE='text/css'>
.level1 {margin-left:30;}
.level2 {display:none;margin-left:38;}
</STYLE>
</HEAD>
<BODY οnlοad="init()" topmargin="0" leftmargin="0" rightmargin="0">
<DIV CLASS="level1" ID='head2Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head2");'><IMG border=0 name=imEx src="images/arrowUp.gif" id=ttt> 用户管理</a>
</DIV>
<DIV CLASS="level2" ID='head2Child'>
<A href="addAdmin.jsp" id=ttt target=main οnclick="doClick()"><LI>增加管理员</LI></a>
<A href="adminList.jsp" id=ttt target=main><LI>用户列表</LI></a>
<A href="RoleManager.jsp" id=ttt target=main><LI>系统角色</LI></a>
</DIV>
<DIV CLASS="level1" ID='head3Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head3");' id=ttt><IMG border=0 height=13 name=imEx src="images/arrowUp.gif" width=17> 产品管理</a>
</DIV>
<DIV CLASS="level2" ID='head3Child'>
<A href="Resource.jsp" id=ttt target=main><LI>产品列表</LI></a>
<A href="ListServerResourceDir.jsp" id=ttt target=main><LI>产品搜索</LI></a>
</DIV>
<DIV CLASS="level1" ID='head4Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head4");' id=ttt><IMG border=0 height=13 name=imEx src="images/arrowUp.gif" width=17> 类别管理</a>
</DIV>
<DIV CLASS="level2" ID='head4Child'>
<A href="Course.jsp" id=ttt target=main><LI>类别列表</LI></a>
<A href="CourseValidate.jsp" id=ttt target=main><LI>类别AJAVX</LI></a>
</DIV>
<DIV CLASS="level1" ID='head6Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head6");' id=ttt><IMG border=0 height=13 name=imEx src="images/arrowUp.gif" width=17> 订单管理</a>
</DIV>
<DIV CLASS="level2" ID='head6Child'>
<A href="News.jsp" id=ttt target=main><LI>订单列表</LI></a>
</DIV>
<DIV CLASS="level1" ID='head7Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head7");' id=ttt><IMG border=0 height=13 name=imEx src="images/arrowUp.gif" width=17> 组织结构</a>
</DIV>
<DIV CLASS="level2" ID='head7Child'>
<A href="Applier.jsp" id=ttt target=main><LI>组织结构管理</LI></a>
</DIV>
<DIV CLASS="level1" ID='head8Parent'>
<A class=OUTDENT href="" οnclick='return expandIt("head8");' id=ttt><IMG border=0 height=13 name=imEx src="images/arrowUp.gif" width=17> 直播管理</a>
</DIV>
<DIV CLASS="level2" ID='head8Child'>
<A href="Live.jsp" id=ttt target=main><LI>直播组织</LI></a>
<A href="LiveWorkstation.jsp" id=ttt target=main><LI>直播工作站管理</LI></a>
</DIV>
</BODY>
</html>
------------------------------------------------------------------------------------