温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:无限级树形菜单(Sql数据库)
当前文件:
SqlTree/DefaultTree.aspx,打开代码结构图
SqlTree/DefaultTree.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultTree.aspx.cs" Inherits="DefaultTree" %> 2
<html xmlns="http://www.w3.org/1999/xhtml" > 3
<head> 4
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 5
<title>无限级树形菜单|-51aspx.com</title> 6
<style type="text/css"> 7
<!-- 8
.stylespan 9
{ 10
font-size: 12px 11
} 12
13
.stylediv 14
{ 15
margin-top:0px; 16
height:18px; 17
border-width:0px 0px 0px 0px; 18
19
} 20
21
.Node-selected 22
{ 23
24
border:1px solid #000000; 25
background-color:#EAEAEA; 26
font-size:12px; 27
28
} 29
30
.Node-unselect 31
{ 32
border:0px solid #FFFFFF; 33
background-color:transparent; 34
font-size:12px; 35
36
} 37
38
a { color: #000000; text-decoration: none;cursor: hand} 39
a:hover { color: #000000; text-decoration: none;cursor:hand} 40
41
.img 42
{ 43
border:0px 0px 0px 0px; 44
width:18px; 45
height:18px; 46
} 47
48
.imgDef 49
{ 50
border:0px 0px 0px 0px; 51
width:16px; 52
height:16px; 53
} 54
55
--> 56
</style> 57
</head> 58
<script language=javascript> 59
function ClickMenu(diving,plusing,num) 60
{ 61
//alert(diving); 62
if(document.getElementById(diving).style.display=="none") 63
{ 64
document.getElementById(diving).style.display='block'; 65
if(plusing=="plus") 66
{ 67
document.getElementById(plusing+num).src="minus.gif"; 68
} 69
else if(plusing=="nolines") 70
{ 71
document.getElementById(plusing+num).src="minus_nolines.gif"; 72
} 73
else if(plusing=="bottom") 74
{ 75
document.getElementById(plusing+num).src="minus_bottom.gif"; 76
} 77
document.getElementById("open"+num).src="close.gif"; 78
} 79
else 80
{ 81
document.getElementById(diving).style.display='none'; 82
if(plusing=="plus") 83
{ 84
document.getElementById(plusing+num).src="plus.gif"; 85
} 86
else if(plusing=="nolines") 87
{ 88
document.getElementById(plusing+num).src="plus_nolines.gif"; 89
} 90
else if(plusing=="bottom") 91
{ 92
document.getElementById(plusing+num).src="plus_bottom.gif"; 93
} 94
document.getElementById("open"+num).src="open.gif"; 95
} 96
} 97
98
function ChangeColora(obj) 99
{ 100
101
102
obj.className='Node-selected'; 103
104
} 105
function ChangeColorb(obj) 106
{ 107
108
obj.className='Node-unselect'; 109
110
} 111
112
113
</script> 114
115
<body> 116
<% GetUserName("admin"); %> 117
</body> 118
</html>




<!--

-->
