<div class="htmlarea"> <textarea id="runcode47924"> <meta name="Author" content="Ma Jia Nan"> <meta name="Date" content="2008-12-7"> <meta name="Description" content=""> <title>메뉴</title> <style type="text/css"> #menubar { font-family:verdana; font-size:12px; margin:1px; } #menubar li { float:left; position:relative; text-align:left; } /* each menu item style */ #menubar li a { border-style:none; color:black; display:block; width:150px; height:20px; line-height:20px; padding-left:10px; text-decoration:none; } /* the first level menu which displays default */ #menubar .menuMain{ border-color:#C0C0C0; border-width:1px; border-style:solid; } /* the first leve style when mouse on it */ #menubar li a:hover{ background-color:#efefef; text-decoration:underline; } /* the second level menu block style */ #menubar li ul{ background-color:#efefef; border-style:none; display:none; position:absolute; top:20px; left:-40px; margin-top:2px; width:150px; } /* the sub menu item style when mouse on it */ #menubar li ul li a:hover { text-decoration:underline; padding-left:20px; } /* the third or more level menu block style */ #menubar li ul li ul { display:none; position:absolute; top:0px; left:150px; margin-top:0; margin-left:0; width:150px; } </style> <div> <ul id="menubar"> <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> <a href="#" class="menuMain"> </a>파일<ul> <li> <a href="#"></a>새로운</li> <li> <a href="#"></a>열기</li> <li> <a href="#"></a>저장</li> <li> <a href="#"></a>다른 이름으로 저장</li> <li> <a href="#"></a>닫기</li> </ul> </li> <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> <a href="#" class="menuMain"> </a>수정<ul> <li> <a href="#"></a>잘라내기</li> <li> <a href="#"></a>복사</li> <li> <a href="#"></a>파세트</li> <li> <a href="#"></a>삭제</li> <li> <a href="#"></a>모두 선택</li> </ul> </li> <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> <a href="#" class="menuMain"> </a>보기<ul> <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> <a href="#"> </a>목록 보기<ul> <li> <a href="#"></a>도구 모음</li> <li> <a href="#"></a>스테이트 바</li> <li> <a href="#"></a>기능 목록</li> <li> <a href="#"></a>라벨 목록</li> </ul> </li> <li> <a href="#"></a>줄번호 표시</li> <li> <a href="#"></a>색상 설정</li> </ul> </li> </ul> </div> </textarea> <br><input onclick="runEx('runcode47924')" type="button" value="运行代码"><input onclick="doCopy('runcode47924')" type="button" value="复制代码"> <input onclick="doSave(runcode47924)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 </div>]<script language="javascript"> function displaySubMenu(li){ var subMenu = li.getElementsByTagName('ul')[0]; subMenu.style.display = 'block'; } function hideSubMenu(li){ var subMenu = li.getElementsByTagName('ul')[0]; subMenu.style.display = 'none'; } </script>