<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
DefaultTree.aspx.cs
"
Inherits
=
"
DefaultTree
"
%>
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv ="Content-Type" content ="text/html; charset=gb2312" />
< title > 无限级树形菜单|-51aspx.com </ title >
< style type ="text/css" >
<!--
.stylespan
{
font-size : 12px
}
.stylediv
{
margin-top : 0px ;
height : 18px ;
border-width : 0px 0px 0px 0px ;
}
.Node-selected
{
border : 1px solid #000000 ;
background-color : #EAEAEA ;
font-size : 12px ;
}
.Node-unselect
{
border : 0px solid #FFFFFF ;
background-color : transparent ;
font-size : 12px ;
}
a { color : #000000 ; text-decoration : none ; cursor : hand }
a:hover { color : #000000 ; text-decoration : none ; cursor : hand }
.img
{
border : 0px 0px 0px 0px ;
width : 18px ;
height : 18px ;
}
.imgDef
{
border : 0px 0px 0px 0px ;
width : 16px ;
height : 16px ;
}
-->
</ style >
</ head >
< script language =javascript >
function ClickMenu(diving,plusing,num)
{
// alert(diving);
if (document.getElementById(diving).style.display == " none " )
{
document.getElementById(diving).style.display = ' block ' ;
if (plusing == " plus " )
{
document.getElementById(plusing + num).src = " minus.gif " ;
}
else if (plusing == " nolines " )
{
document.getElementById(plusing + num).src = " minus_nolines.gif " ;
}
else if (plusing == " bottom " )
{
document.getElementById(plusing + num).src = " minus_bottom.gif " ;
}
document.getElementById( " open " + num).src = " close.gif " ;
}
else
{
document.getElementById(diving).style.display = ' none ' ;
if (plusing == " plus " )
{
document.getElementById(plusing + num).src = " plus.gif " ;
}
else if (plusing == " nolines " )
{
document.getElementById(plusing + num).src = " plus_nolines.gif " ;
}
else if (plusing == " bottom " )
{
document.getElementById(plusing + num).src = " plus_bottom.gif " ;
}
document.getElementById( " open " + num).src = " open.gif " ;
}
}
function ChangeColora(obj)
{
obj.className = ' Node-selected ' ;
}
function ChangeColorb(obj)
{
obj.className = ' Node-unselect ' ;
}
</ script >
< body >
<% GetUserName( " admin " ); %>
</ body >
</ html >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv ="Content-Type" content ="text/html; charset=gb2312" />
< title > 无限级树形菜单|-51aspx.com </ title >
< style type ="text/css" >
<!--
.stylespan
{
font-size : 12px
}
.stylediv
{
margin-top : 0px ;
height : 18px ;
border-width : 0px 0px 0px 0px ;
}
.Node-selected
{
border : 1px solid #000000 ;
background-color : #EAEAEA ;
font-size : 12px ;
}
.Node-unselect
{
border : 0px solid #FFFFFF ;
background-color : transparent ;
font-size : 12px ;
}
a { color : #000000 ; text-decoration : none ; cursor : hand }
a:hover { color : #000000 ; text-decoration : none ; cursor : hand }
.img
{
border : 0px 0px 0px 0px ;
width : 18px ;
height : 18px ;
}
.imgDef
{
border : 0px 0px 0px 0px ;
width : 16px ;
height : 16px ;
}
-->
</ style >
</ head >
< script language =javascript >
function ClickMenu(diving,plusing,num)
{
// alert(diving);
if (document.getElementById(diving).style.display == " none " )
{
document.getElementById(diving).style.display = ' block ' ;
if (plusing == " plus " )
{
document.getElementById(plusing + num).src = " minus.gif " ;
}
else if (plusing == " nolines " )
{
document.getElementById(plusing + num).src = " minus_nolines.gif " ;
}
else if (plusing == " bottom " )
{
document.getElementById(plusing + num).src = " minus_bottom.gif " ;
}
document.getElementById( " open " + num).src = " close.gif " ;
}
else
{
document.getElementById(diving).style.display = ' none ' ;
if (plusing == " plus " )
{
document.getElementById(plusing + num).src = " plus.gif " ;
}
else if (plusing == " nolines " )
{
document.getElementById(plusing + num).src = " plus_nolines.gif " ;
}
else if (plusing == " bottom " )
{
document.getElementById(plusing + num).src = " plus_bottom.gif " ;
}
document.getElementById( " open " + num).src = " open.gif " ;
}
}
function ChangeColora(obj)
{
obj.className = ' Node-selected ' ;
}
function ChangeColorb(obj)
{
obj.className = ' Node-unselect ' ;
}
</ script >
< body >
<% GetUserName( " admin " ); %>
</ body >
</ html >