<div class="htmlarea"> <textarea id="runcode41842"> <title>보조 트리 메뉴 예: CSS TreeMenu</title> <style type="text/css" media="all"> a,a:visited {color:#333;text-decoration:none;} a:hover {color:#f60;} body,td {font:13px "Geneva","宋体", "Arial", "Helvetica",sans-serif;} ul,li {margin:0;padding:0;list-style:none;} h1,h2,h3,h4,h5,h6 {margin:0;padding:0;} h1 {padding:5px;color:#900;font:16px bold "Geneva","宋体", "Arial", "Helvetica",sans-serif;} h1 small {font-size:11px;font-weight:normal;color:#660;} .TreeWrap {width:200px;} .MenuBox .titBox a, .MenuBox .titBox a:visited, .MenuBox2 .titBox a, .MenuBox2 .titBox a:visited {margin-left:10px;padding-left:40px;color:#003;font-size:12px;display:block;} .MenuBox .titBox h3 a {background:url(/upload/201011/20101103170215932.gif) no-repeat 0 40%;} .MenuBox .titBox h3.Fst a {background:url(/upload/201011/20101103170215184.gif) no-repeat 0 40%;} .MenuBox .titBox h3.Lst a {background:url(/upload/201011/20101103170215322.gif) no-repeat 0 40%;} .MenuBox2 .titBox h3 a {background:url(/upload/201011/20101103170215622.gif) no-repeat 0 40%;} .MenuBox2 .titBox h3.Fst a {background:url(/upload/201011/20101103170215343.gif) no-repeat 0 40%;} .MenuBox2 .titBox h3.Lst a {line-height:250%;background:url(/upload/201011/20101103170215522.gif) no-repeat 0 0;} .MenuBox2 .txtBox {display:none;} .MenuBox .txtBox ul li {padding-left:65px;line-height:150%;} .MenuBox .txtBox .num {color:#e00;} .MenuBox .txtBox ul {background:url(/upload/201011/20101103170215650.gif) repeat-y 16px 0;} .MenuBox .txtBox ul li {background:url(/upload/201011/20101103170215266.gif) no-repeat 28px 50%;} .MenuBox .txtBox ul li.Lst {background:url(/upload/201011/20101103170215812.gif) no-repeat 28px 50%;} </style> <h1> <small>CSS TreeMenu </small>작성: Fengyan@IECN.Net</h1> <div class="TreeWrap"> <div class="MenuBox" id="Menu_0"> <div class="titBox"> <h3 class="Fst"> <a href="javascript:showMenu(0);"></a>동료</h3> </div> <div class="txtBox"> <ul> <li> <a href="#"></a>도도</li> <li> <a href="#"></a>샤오춘</li> <li> <a href="#"></a>샤오린</li> <li> <a href="#"></a>꼬마 용</li> <li class="Lst"> <a href="#"></a>메이플록</li> </ul> </div> </div> <!--MenuBox--><div class="MenuBox2" id="Menu_1"> <div class="titBox"> <h3> <a href="javascript:showMenu(1);"></a>고객</h3> </div> <div class="txtBox"> <ul> <li> <a href="#"></a>도도</li> <li> <a href="#"></a>샤오춘</li> <li> <a href="#"></a>샤오린</li> <li> <a href="#"></a>꼬마 용</li> <li class="Lst"> <a href="#"></a>메이플록</li> </ul> </div> </div> <!--MenuBox--><div class="MenuBox2" id="Menu_2"> <div class="titBox"> <h3> <a href="javascript:showMenu(2);"></a>친구</h3> </div> <div class="txtBox"> <ul> <li> <a href="#"></a>도도</li> <li> <a href="#"></a>샤오춘</li> <li> <a href="#"></a>샤오린</li> <li> <a href="#"></a>꼬마 용</li> <li class="Lst"> <a href="#"></a>메이플록</li> </ul> </div> </div> <!--MenuBox--><div class="MenuBox2" id="Menu_3"> <div class="titBox"> <h3> <a href="javascript:showMenu(3);"></a>가족</h3> </div> <div class="txtBox"> <ul> <li> <a href="#"></a>도도</li> <li> <a href="#"></a>샤오춘</li> <li> <a href="#"></a>샤오린</li> <li> <a href="#"></a>꼬마 용</li> <li class="Lst"> <a href="#"></a>메이플록</li> </ul> </div> </div> <!--MenuBox--><div class="MenuBox2"> <div class="titBox"> <h3 class="Lst"> <a href="#"></a>시스템 종료</h3> </div> </div> <!--MenuBox--> </div> </textarea> <br><input onclick="runEx('runcode41842')" type="button" value="运行代码"><input onclick="doCopy('runcode41842')" type="button" value="复制代码"> <input onclick="doSave(runcode41842)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 </div>]<script type="text/javascript"> <!-- function ExChgClsName(Obj,NameA,NameB){ var Obj=document.getElementById(Obj)?document.getElementById(Obj):Obj; Obj.className=Obj.className==NameA?NameB:NameA; } function showMenu(iNo){ ExChgClsName("Menu_"+iNo,"MenuBox","MenuBox2"); } --> </script>