61,129
社区成员




<html>
<head>
<title>行为分析策略配置</title>
<meta lang="java" http-equiv="content-Type" content="text/html;charset=utf-8">
<!--把下面代码加到<head>与</head>之间-->
<style type="text/css">
a {text-decoration:none;}
a,a:visited {color:#000;background:inherit;}
body {margin:0 0 0 233px;padding:20px;font:12px tahoma,宋体,sans-serif;}
dt {font-size:22px;font-weight:bold;margin:0 0 0 15px;}
dd {margin:0 0 0 15px;}
h4 {margin:0 233px 0 0;padding:0;font-size:18px;text-align:center;}
p {margin:0;padding:0 0 0 18px;}
p a,p a:visited {color:#00f;background:inherit;}
/*CNLTreeMenu Start*/
.CNLTreeMenu img.s {cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {padding:0;}
.CNLTreeMenu li {list-style:none;padding:0;}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}
#CNLTreeMenu1 ul {margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {width:20px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {width:20px;height:15px;}
#CNLTreeMenu3 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
/*CNLTreeMenu End*/
/*Temp CSS for View Demo*/
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {float:left;width:249px;border:1px solid #99BEEF;background:#D2E4FC;color:inherit;margin:3px;padding:3px;}
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {padding-bottom:15px;}
.ViewCode {
clear:both;
border:1px solid #FFB900;background:#FFFFCC;color:inherit;margin:3px;padding:3px;
}
.ViewCode h6 {color:#00f;}
</style>
</head>
<body>
<h4>行为分析策略配置</h4>
<form method=post action="XMLmodifier2.jsp">
<div class="CNLTreeMenu" id="CNLTreeMenu1">
<p><a id="AllClose_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');">全部折叠</a><a id="AllOpen_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');" style="display:none;">全部展开</a></p>
<ul>
<li>文件传输
<input type="button" value="全选"onclick=selectall("CNLTreeMenu1")>
<input type="button" value="全不选"onclick=unselectall("CNLTreeMenu1")>
<ul>
<li><input type="checkbox"value="FTP" name="FTP" onclick=setdisable("FTP")>FTP
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="FTPFTP">未知</li>
</ul>
</li>
<li><input type="checkbox"value="smtp" name="smtp" onclick=setdisable("smtp")>smtp
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="smtpsmtp">未知</li>
</ul>
</li>
<li><input type="checkbox"value="pop3" name="pop3" onclick=setdisable("pop3")>pop3
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="pop3pop3">未知</li>
</ul>
</li>
<li><input type="checkbox"value="POST" name="POST" onclick=setdisable("POST")>POST
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="POSTPOST">未知</li>
</ul>
</li>
</ul>
</li>
</ul>
</div><!-- CNLTreeMenu -->
</form>
<script type="text/javascript">
function Ob(o){
var o=document.getElementById(o)?document.getElementById(o):o;
return o;
}
function Hd(o) {
Ob(o).style.display="none";
}
function Sw(o) {
Ob(o).style.display="";
}
function ExCls(o,a,b,n){
var o=Ob(o);
for(i=0;i<n;i++) {o=o.parentNode;}
o.className=o.className==a?b:a;
}
var b=1;
function CNLTreeMenu(id,TagName0) {
this.id=id;
this.TagName0=TagName0==""?"li":TagName0;
this.AllNodes = Ob(this.id).getElementsByTagName(TagName0);
this.InitCss = function (ClassName0,ClassName1,ClassName2,ImgUrl) {
this.ClassName0=ClassName0;
this.ClassName1=ClassName1;
this.ClassName2=ClassName2;
this.ImgUrl=ImgUrl || "tree/s.gif";
this.ImgBlankA ="<img src=\""+this.ImgUrl+"\" class=\"s\" onclick=\"ExCls(this,'"+ClassName0+"','"+ClassName1+"',1);\" alt=\"展开/折叠\" />";
this.ImgBlankB ="<img src=\""+this.ImgUrl+"\" class=\"s\" />";
for (i=0;i<this.AllNodes.length;i++ ) {
//this.AllNodes[i].className==""?this.AllNodes[i].className=ClassName1:"";
this.AllNodes[i].innerHTML=(this.AllNodes[i].className==ClassName2?this.ImgBlankB:this.ImgBlankA)+this.AllNodes[i].innerHTML;
}
}
this.SetNodes = function (n) {
var sClsName=n==0?this.ClassName0:this.ClassName1;
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==this.ClassName2?"":this.AllNodes[i].className=sClsName;
}
}
}
var MyCNLTreeMenu1=new CNLTreeMenu("CNLTreeMenu1","li");
MyCNLTreeMenu1.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu2=new CNLTreeMenu("CNLTreeMenu2","li");
MyCNLTreeMenu2.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu3=new CNLTreeMenu("CNLTreeMenu3","li");
MyCNLTreeMenu3.InitCss("Opened","Closed","Child","tree/s.gif");
</script>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
var namebox;
function checkAll(name){
var name2=name+name;
var object = document.getElementsByName(name2);
var length = object.length;
for (var i = 0; i < length; i++)
{
object[i].checked=true;
}
}
function uncheckAll(name){
var name2=name+name;
var object = document.getElementsByName(name2);
var length = object.length;
for (var i = 0; i < length; i++)
{
object[i].checked=false;
}
}
function switchAll(){
for (var j = 1; j <= 2; j++) {
box = eval("document.checkboxform.C" + j);
box.checked = !box.checked;
}
}
function judge(name){
var name1=name;
if(document.getElementById(name1).checked==true)
{checkAll(name1);}
else
{uncheckAll(name1);}
}
function setdisable(name)
{
var name1=name+name;
var obj=document.getElementsByName(name1);
var len=obj.length;
for(n=0;n<len;n++){
if(document.getElementById(name).checked==true){obj[n].disabled=false;}
else{obj[n].disabled=true;}
}
onclick=judge(name);
}
function selectall(div){
var input = document.getElementById(div).getElementsByTagName("input");
for(var i=0;i<input.length;i++){
input[i].disabled=false;e
input[i].checked=true;
}
}
function unselectall(div){
var input = document.getElementById(div).getElementsByTagName("input");
for(var i=0;i<input.length;i++){
input[i].checked=false;
}
}
</SCRIPT>
</body>
</html>
<p>
<a id="AllClose_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');">全部折叠</a>
<a id="AllOpen_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');" style="display:none;">全部展开</a>
</p>
<html>
<head>
<title>行为分析策略配置</title>
<meta lang="java" http-equiv="content-Type" content="text/html;charset=utf-8">
<!--把下面代码加到<head>与</head>之间-->
<style type="text/css">
a {text-decoration:none;}
a,a:visited {color:#000;background:inherit;}
body {margin:0 0 0 233px;padding:20px;font:12px tahoma,宋体,sans-serif;}
dt {font-size:22px;font-weight:bold;margin:0 0 0 15px;}
dd {margin:0 0 0 15px;}
h4 {margin:0 233px 0 0;padding:0;font-size:18px;text-align:center;}
p {margin:0;padding:0 0 0 18px;}
p a,p a:visited {color:#00f;background:inherit;}
/*CNLTreeMenu Start*/
.CNLTreeMenu img.s {cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {padding:0;}
.CNLTreeMenu li {list-style:none;padding:0;}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}
#CNLTreeMenu1 ul {margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {width:20px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {width:20px;height:15px;}
#CNLTreeMenu3 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
/*CNLTreeMenu End*/
/*Temp CSS for View Demo*/
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {float:left;width:249px;border:1px solid #99BEEF;background:#D2E4FC;color:inherit;margin:3px;padding:3px;}
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {padding-bottom:15px;}
.ViewCode {
clear:both;
border:1px solid #FFB900;background:#FFFFCC;color:inherit;margin:3px;padding:3px;
}
.ViewCode h6 {color:#00f;}
</style>
</head>
<body>
<h4>行为分析策略配置</h4>
<form method=post action="XMLmodifier2.jsp">
<div class="CNLTreeMenu" id="CNLTreeMenu1">
<p><a id="AllClose_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');" style="display:none;">全部折叠</a><a id="AllOpen_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');">全部展开</a></p>
<ul>
<li>文件传输
<input type="button" value="全选"onclick=selectall("CNLTreeMenu1")>
<input type="button" value="全不选"onclick=unselectall("CNLTreeMenu1")>
<ul>
<li><input type="checkbox"value="FTP" name="FTP" onclick=setdisable("FTP")>FTP
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="FTPFTP">未知</li>
</ul>
</li>
<li><input type="checkbox"value="smtp" name="smtp" onclick=setdisable("smtp")>smtp
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="smtpsmtp">未知</li>
</ul>
</li>
<li><input type="checkbox"value="pop3" name="pop3" onclick=setdisable("pop3")>pop3
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="pop3pop3">未知</li>
</ul>
</li>
<li><input type="checkbox"value="POST" name="POST" onclick=setdisable("POST")>POST
<ul>
<li class="Child"><input type="checkbox" disabled value="未知" name="POSTPOST">未知</li>
</ul>
</li>
</ul>
</li>
</ul>
</div><!-- CNLTreeMenu -->
</form>
<script type="text/javascript">
function Ob(o){
var o=document.getElementById(o)?document.getElementById(o):o;
return o;
}
function Hd(o) {
Ob(o).style.display="none";
}
function Sw(o) {
Ob(o).style.display="";
}
function ExCls(o,a,b,n){
var o=Ob(o);
for(i=0;i<n;i++) {o=o.parentNode;}
o.className=o.className==a?b:a;
}
var b=1;
function CNLTreeMenu(id,TagName0) {
this.id=id;
this.TagName0=TagName0==""?"li":TagName0;
this.AllNodes = Ob(this.id).getElementsByTagName(TagName0);
this.InitCss = function (ClassName0,ClassName1,ClassName2,ImgUrl) {
this.ClassName0=ClassName0;
this.ClassName1=ClassName1;
this.ClassName2=ClassName2;
this.ImgUrl=ImgUrl || "tree/s.gif";
this.ImgBlankA ="<img src=\""+this.ImgUrl+"\" class=\"s\" onclick=\"ExCls(this,'"+ClassName0+"','"+ClassName1+"',1);\" alt=\"展开/折叠\" />";
this.ImgBlankB ="<img src=\""+this.ImgUrl+"\" class=\"s\" />";
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==""?this.AllNodes[i].className=ClassName1:"";
this.AllNodes[i].innerHTML=(this.AllNodes[i].className==ClassName2?this.ImgBlankB:this.ImgBlankA)+this.AllNodes[i].innerHTML;
}
}
this.SetNodes = function (n) {
var sClsName=n==0?this.ClassName0:this.ClassName1;
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==this.ClassName2?"":this.AllNodes[i].className=sClsName;
}
}
}
var MyCNLTreeMenu1=new CNLTreeMenu("CNLTreeMenu1","li");
MyCNLTreeMenu1.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu2=new CNLTreeMenu("CNLTreeMenu2","li");
MyCNLTreeMenu2.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu3=new CNLTreeMenu("CNLTreeMenu3","li");
MyCNLTreeMenu3.InitCss("Opened","Closed","Child","tree/s.gif");
</script>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
var namebox;
function checkAll(name){
var name2=name+name;
var object = document.getElementsByName(name2);
var length = object.length;
for (var i = 0; i < length; i++)
{
object[i].checked=true;
}
}
function uncheckAll(name){
var name2=name+name;
var object = document.getElementsByName(name2);
var length = object.length;
for (var i = 0; i < length; i++)
{
object[i].checked=false;
}
}
function switchAll(){
for (var j = 1; j <= 2; j++) {
box = eval("document.checkboxform.C" + j);
box.checked = !box.checked;
}
}
function judge(name){
var name1=name;
if(document.getElementById(name1).checked==true)
{checkAll(name1);}
else
{uncheckAll(name1);}
}
function setdisable(name)
{
var name1=name+name;
var obj=document.getElementsByName(name1);
var len=obj.length;
for(n=0;n<len;n++){
if(document.getElementById(name).checked==true){obj[n].disabled=false;}
else{obj[n].disabled=true;}
}
onclick=judge(name);
}
function selectall(div){
var input = document.getElementById(div).getElementsByTagName("input");
for(var i=0;i<input.length;i++){
input[i].disabled=false;
input[i].checked=true;
}
}
function unselectall(div){
var input = document.getElementById(div).getElementsByTagName("input");
for(var i=0;i<input.length;i++){
input[i].checked=false;
}
}
</SCRIPT>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
a {text-decoration:none;}
a,a:visited {color:#000;background:inherit;}
body {margin:0 0 0 233px;padding:20px;font:12px tahoma,宋体,sans-serif;}
dt {font-size:22px;font-weight:bold;margin:0 0 0 15px;}
dd {margin:0 0 0 15px;}
h4 {margin:0 233px 0 0;padding:0;font-size:18px;text-align:center;}
p {margin:0;padding:0 0 0 18px;}
p a,p a:visited {color:#00f;background:inherit;}
/*CNLTreeMenu Start*/
.CNLTreeMenu img.s {cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {padding:0;}
.CNLTreeMenu li {list-style:none;padding:0;}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}
#CNLTreeMenu1 ul {margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {width:20px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {width:20px;height:15px;}
#CNLTreeMenu3 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
/*CNLTreeMenu End*/
/*Temp CSS for View Demo*/
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {float:left;width:249px;border:1px solid #99BEEF;background:#D2E4FC;color:inherit;margin:3px;padding:3px;}
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {padding-bottom:15px;}
.ViewCode {
clear:both;
border:1px solid #FFB900;background:#FFFFCC;color:inherit;margin:3px;padding:3px;
}
.ViewCode h6 {color:#00f;}
</style>
</head>
<body>
<div class="CNLTreeMenu" id="CNLTreeMenu1">
<p>
<a id="AllClose_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');">全部折叠</a>
<a id="AllOpen_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');" style="display:none;">全部展开</a></p>
<ul>
<li>
文件传输
<input type="button" value="全选">
<ul>
<li>
<input type="checkbox" value="FTP" name="FTP" onclick=setdisable("FTP")>
FTP
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="FTPFTP">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="smtp" name="smtp" onclick=setdisable("smtp")>
smtp
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="smtpsmtp">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="pop3" name="pop3" onclick=setdisable("pop3")>
pop3
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="pop3pop3">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="POST" name="POST" onclick=setdisable("POST")>
POST
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="POSTPOST">
未知
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
function Ob(o){
var o=document.getElementById(o)?document.getElementById(o):o;
return o;
}
function Hd(o) {
Ob(o).style.display="none";
}
function Sw(o) {
Ob(o).style.display="";
}
function ExCls(o,a,b,n){
var o=Ob(o);
for(i=0;i<n;i++) {o=o.parentNode;}
o.className=o.className==a?b:a;
}
var b=1;
function CNLTreeMenu(id,TagName0) {
this.id=id;
this.TagName0=TagName0==""?"li":TagName0;
this.AllNodes = Ob(this.id).getElementsByTagName(TagName0);
this.InitCss = function (ClassName0,ClassName1,ClassName2,ImgUrl) {
this.ClassName0=ClassName0;
this.ClassName1=ClassName1;
this.ClassName2=ClassName2;
this.ImgUrl=ImgUrl || "tree/s.gif";
this.ImgBlankA ="<img src=\""+this.ImgUrl+"\" class=\"s\" onclick=\"ExCls(this,'"+ClassName0+"','"+ClassName1+"',1);\" alt=\"展开/折叠\" />";
this.ImgBlankB ="<img src=\""+this.ImgUrl+"\" class=\"s\" />";
/*for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==""?this.AllNodes[i].className=ClassName1:"";
this.AllNodes[i].innerHTML=(this.AllNodes[i].className==ClassName2?this.ImgBlankB:this.ImgBlankA)+this.AllNodes[i].innerHTML;
}*/
}
this.SetNodes = function (n) {
var sClsName=n==0?this.ClassName0:this.ClassName1;
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==this.ClassName2?"":this.AllNodes[i].className=sClsName;
}
}
}
var MyCNLTreeMenu1=new CNLTreeMenu("CNLTreeMenu1","li");
MyCNLTreeMenu1.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu2=new CNLTreeMenu("CNLTreeMenu2","li");
MyCNLTreeMenu2.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu3=new CNLTreeMenu("CNLTreeMenu3","li");
MyCNLTreeMenu3.InitCss("Opened","Closed","Child","tree/s.gif");
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
a {text-decoration:none;}
a,a:visited {color:#000;background:inherit;}
body {margin:0 0 0 233px;padding:20px;font:12px tahoma,宋体,sans-serif;}
dt {font-size:22px;font-weight:bold;margin:0 0 0 15px;}
dd {margin:0 0 0 15px;}
h4 {margin:0 233px 0 0;padding:0;font-size:18px;text-align:center;}
p {margin:0;padding:0 0 0 18px;}
p a,p a:visited {color:#00f;background:inherit;}
/*CNLTreeMenu Start*/
.CNLTreeMenu img.s {cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {padding:0;}
.CNLTreeMenu li {list-style:none;padding:0;}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}
#CNLTreeMenu1 ul {margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {width:20px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu2 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {width:20px;height:15px;}
#CNLTreeMenu3 .Opened img.s {background:url(tree/opened.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Closed img.s {background:url(tree/closed.gif) no-repeat 0 0;}
#CNLTreeMenu3 .Child img.s {background:url(tree/child.gif) no-repeat 3px 5px;}
/*CNLTreeMenu End*/
/*Temp CSS for View Demo*/
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {float:left;width:249px;border:1px solid #99BEEF;background:#D2E4FC;color:inherit;margin:3px;padding:3px;}
#CNLTreeMenu1,#CNLTreeMenu2,#CNLTreeMenu3 {padding-bottom:15px;}
.ViewCode {
clear:both;
border:1px solid #FFB900;background:#FFFFCC;color:inherit;margin:3px;padding:3px;
}
.ViewCode h6 {color:#00f;}
</style>
<script type="text/javascript">
function Ob(o){
var o=document.getElementById(o)?document.getElementById(o):o;
return o;
}
function Hd(o) {
Ob(o).style.display="none";
}
function Sw(o) {
Ob(o).style.display="";
}
function ExCls(o,a,b,n){
var o=Ob(o);
for(i=0;i<n;i++) {o=o.parentNode;}
o.className=o.className==a?b:a;
}
var b=1;
function CNLTreeMenu(id,TagName0) {
this.id=id;
this.TagName0=TagName0==""?"li":TagName0;
this.AllNodes = Ob(this.id).getElementsByTagName(TagName0);
this.InitCss = function (ClassName0,ClassName1,ClassName2,ImgUrl) {
this.ClassName0=ClassName0;
this.ClassName1=ClassName1;
this.ClassName2=ClassName2;
this.ImgUrl=ImgUrl || "tree/s.gif";
this.ImgBlankA ="<img src=\""+this.ImgUrl+"\" class=\"s\" onclick=\"ExCls(this,'"+ClassName0+"','"+ClassName1+"',1);\" alt=\"展开/折叠\" />";
this.ImgBlankB ="<img src=\""+this.ImgUrl+"\" class=\"s\" />";
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==""?this.AllNodes[i].className=ClassName1:"";
this.AllNodes[i].innerHTML=(this.AllNodes[i].className==ClassName2?this.ImgBlankB:this.ImgBlankA)+this.AllNodes[i].innerHTML;
}
}
this.SetNodes = function (n) {
var sClsName=n==0?this.ClassName0:this.ClassName1;
for (i=0;i<this.AllNodes.length;i++ ) {
this.AllNodes[i].className==this.ClassName2?"":this.AllNodes[i].className=sClsName;
}
}
}
var MyCNLTreeMenu1=new CNLTreeMenu("CNLTreeMenu1","li");
MyCNLTreeMenu1.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu2=new CNLTreeMenu("CNLTreeMenu2","li");
MyCNLTreeMenu2.InitCss("Opened","Closed","Child","tree/s.gif");
var MyCNLTreeMenu3=new CNLTreeMenu("CNLTreeMenu3","li");
MyCNLTreeMenu3.InitCss("Opened","Closed","Child","tree/s.gif");
</script>
</head>
<body>
<div class="CNLTreeMenu" id="CNLTreeMenu1">
<p>
<a id="AllClose_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');" style="display:none;">全部折叠</a>
<a id="AllOpen_1" href="#" onClick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');">全部展开</a></p>
<ul>
<li>
文件传输
<input type="button" value="全选">
<ul>
<li>
<input type="checkbox" value="FTP" name="FTP" onclick=setdisable("FTP")>
FTP
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="FTPFTP">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="smtp" name="smtp" onclick=setdisable("smtp")>
smtp
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="smtpsmtp">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="pop3" name="pop3" onclick=setdisable("pop3")>
pop3
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="pop3pop3">
未知
</li>
</ul>
</li>
<li>
<input type="checkbox" value="POST" name="POST" onclick=setdisable("POST")>
POST
<ul>
<li class="Child">
<input type="checkbox" disabled value="未知" name="POSTPOST">
未知
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</body>
</html>