한국어
<STYLE type=text/css>#menubar { 배경: rgb(212,208,200); 글꼴: 메뉴; 커서: 기본값; 위치: 상대 } #menubar .root { 테두리-오른쪽: rgb(212,208,200) 1px solid; PADDING-RIGHT: 2pt; 테두리 상단: rgb(212,208,200) 1px 솔리드; 패딩-왼쪽: 2pt; 테두리-왼쪽: rgb(212,208,200) 1px 솔리드; 테두리-하단: rgb(212,208,200) 1px 단색 } #menubar TABLE { 테두리-오른쪽: 회색 2px 단색; PADDING-RIGHT: 0pt; 테두리 상단: #eeeeee 2px 솔리드; 디스플레이: 없음; PADDING-LEFT: 0pt; 배경: rgb(212,208,200); PADDING-BOTTOM: 0pt; 여백: 0pt; 글꼴: 메뉴; 테두리-왼쪽: #eeeeee 2px 단색; PADDING-TOP: 0pt; 테두리-하단: 회색 2px 솔리드; 위치: 절대 } #menubar TABLE TD { PADDING-RIGHT: 15pt; 패딩-왼쪽: 12pt; 패딩-하단: 2pt; 여백: 0pt; PADDING-TOP: 2pt } #menubar .highlight { 배경: #08246b; 색상: 흰색 } #menubar .disabledhighlight { 배경: rgb(212,208,200); COLOR: 회색 } #menubar #break { COLOR: 회색 } #menubar .disabled { COLOR: 회색 } #menubar #break { PADDING-RIGHT: 0pt; PADDING-LEFT: 0pt; PADDING-BOTTOM: 0pt; 여백: 0pt; PADDING-TOP: 0pt } #menubar SPAN.more { PADDING-RIGHT: 0pt; PADDING-LEFT: 0pt; 왼쪽: 14pt; 플로트: 맞아요; PADDING-BOTTOM: 0pt; 여백: 0pt; 글꼴: 9pt 웨딩; 폭: 0.8em; PADDING-TOP: 0pt; 위치: 친척; 상단: -2pt; HEIGHT: 9pt } #menubar .TBHandle { 테두리-오른쪽: 버튼 섀도우 1px 솔리드; BORDER-TOP: 버튼 강조 표시 1px 솔리드; 글꼴 크기: 1px; BORDER-LEFT: 버튼 강조 표시 1px 솔리드; 너비: 3px; 위치: 절대; 상단: 1px; 높이: 22px; 배경색: 메뉴 } #menubar .yToolbar { 테두리 오른쪽: 버튼 그림자 1px 단색; BORDER-TOP: 버튼 강조 표시 1px 솔리드; 왼쪽: 0px; BORDER-LEFT: 버튼 강조 표시 1px 솔리드; 테두리-하단: 버튼섀도우 1px 솔리드; 위치: 친척; 상단: 0px; 높이: 27px; BACKGROUND-COLOR: 메뉴 } .handbtn { BORDER-RIGHT: 버튼 섀도우 1px 솔리드; BORDER-TOP: 버튼 강조 표시 1px 솔리드; 배경: 버튼페이스; BORDER-LEFT: 버튼 강조 표시 1px 솔리드; 너비: 3px; 테두리-하단: 버튼섀도우 1px 솔리드; HEIGHT: 21px } .sepbtn1 { 테두리-오른쪽: 버튼 강조 표시 1px 솔리드; BORDER-LEFT: 버튼섀도우 1px 능선; WIDTH: 2px } </STYLE> <SCRIPT 언어=javascript> //数组name+次序号码 //数组内容第一个值为标题 //"样式name称","字体颜color","name称","连接" ,"계속" OutBarFolder1=new Array( "계열", "없음","기본값","새 버전 관리인","추가","_blank", "없음","기본값","계속 정리인" ,"none","_blank", "none","default","修改管理人员资料","none","_blank", "none","default","更改密码","none"," _blank", "none","default","权限分配","none","none", "break","default","<hr>","none","none", "none", "default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add ","_blank", "break","기본값","<hr>","none","none", "none","default","备份数据","none","_top", " none","default","恢复数据","none","_top", "break","default","<hr>","none","none", "none","default", "更改个人资料","none","_blank", "none","default","更改个人密码","none","_blank", "break","default","<hr>", "없음","없음", "없음","기본값","출출管理系统","없음","_top" ); OutBarFolder2=new Array( "계열", "없음","기본값","새 버전 관리인","추가","_blank", "none","기본값","계산기 관리자","없음", "_blank", "none","default","修改管理人员资料","none","_blank", "none","default","更改密码","none","_blank", "none ","default","权限分配","none","none", "break","default","<hr>","none","none", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员"," add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank" , "break","default","<hr>","none","none", "none","default","备份数据","none","_top", "none","default ","恢复数据","none","_top", "break","default","<hr>","none","none", "none","default","更改个人资料" ,"none","_blank", "none","default","更改个人密码","none","_blank", "break","default","<hr>","none"," 없음", "없음","기본값","출출관리관리","없음","_top" ); OutBarFolder3=new Array( "계열", "없음","기본값","새 관리자 도구","추가","_blank", "none","기본값","계산기 관리자","없음", "_blank", "none","default","修改管理人员资料","none","_blank", "none","default","更改密码","none","_blank", "none ","default","权限分配","none","none", "break","default","<hr>","none","none", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员"," add","_blank", "none","default","新建管理人员","add","_blank", "none","default","新建管理人员","add","_blank" , "break","default","<hr>","none","none", "none","default","备份数据","none","_top", "none","default ","恢复数据","none","_top", "break","default","<hr>","none","none", "none","default","更改个人资料" ,"none","_blank", "none","default","更改个人密码","none","_blank", "break","default","<hr>","none"," 없음", "없음","기본값","출출관리관리","없음","_top" ); var childActive = null var menuActive = null var lastHighlight = null var active = false function getReal(el) { // 상위 체인에서 테이블 셀 요소 찾기 */ temp = el while ((temp!=null) && (temp. tagName!="TABLE") && (temp.className!="root") && (temp.id!="menuBar")) { if (temp.tagName=="TD") el = temp temp = temp.parentElement } return el } function raiseMenu(el) { el.style.borderLeft = "1px #08246B solid" el.style.borderTop = "1px #08246B solid" el.style.borderRight = "1px #08246B solid" el.style. borderBottom = "1px #08246B 솔리드" el.style.Background = "#B5BED6" } functionclearHighlight(el) { if (el==null) return el.style.borderRight = "1px lightgrey solid" el.style.borderBottom = "1px lightgrey solid" el.style.borderTop = "1px lightgrey solid" el.style.borderLeft = "1px lightgrey solid" el.style.ground = "rgb(212,208,200)" } functioninkMenu(el) { el.style. borderRight = "1px #EEEEEE 솔리드" el.style.borderBottom = "1px #EEEEEE 솔리드" el.style.borderTop = "1px 회색 솔리드" el.style.borderLeft = "1px 회색 솔리드" el.style.ground = "rgb (212,208,200)" } function menuHandler(menuItem) { // 여기에 일반 메뉴 핸들러를 작성하세요! // true를 반환하면 메뉴가 축소됩니다. false를 반환해도 메뉴가 축소되지 않습니다. return true } function getOffsetPos(which,el,tagName) { var pos = 0 // el["offset" + which] while (el.tagName!=tagName) { pos+=el["offset " + which] el = el.offsetParent } 반환 pos } 함수 getRootTable(el) { el = el.offsetParent if (el.tagName=="TR") el = el.offsetParent 반환 el } 함수 getElement(el,tagName) { while ((el!=null) && (el.tagName!=tagName) ) el = el.parentElement return el } function processClick() { var el = getReal(event.srcElement) if ((getRootTable(el).id =="menuBar") && (활성)) { cleanupMenu(menuActive)clearHighlight(menuActive) active=false lastHighlight=null doHighlight(el) } else { if ((el.className=="root") || (!menuHandler (el))) doMenuDown(el) else { if (el._childItem==null) el._childItem = getChildren(el) if (el._childItem!=null) return; if ((el.id!="break") && (el.className!="disabled") && (el.className!="disabledhighlight") && (el.className!="clear")) { if (menuHandler (el)) { cleanupMenu(menuActive)clearHighlight(menuActive) active=false lastHighlight=null } } } } } function getChildren(el) { var tList = el.children.tags("TABLE") var i = 0 while (( i<tList.length) && (tList[i].tagName!="TABLE")) i++ if (i==tList.length) return null else return tList[i] } function doMenuDown(el) { if (el. _childItem==null) el._childItem = getChildren(el) if ((el._childItem!=null) && (el.className!="disabled") && (el.className!="disabledhighlight")) { // 성능 최적화 - 캐시 하위 요소 ch = el._childItem if (ch.style.display=="block") { RemoveHighlight(ch.active) return } ch.style.display = "block" if (el.className=="root" ") { ch.style.pixelTop = el.offsetHeight + el.offsetTop + 2 ch.style.pixelLeft = el.offsetLeft + 1 if (ch.style.pixelWidth==0) ch.style.pixelWidth = ch.rows[ 0].offsetWidth+50inkMenu(el) active = true menuActive = el } else { childActive = el ch.style.pixelTop = getOffsetPos("Top",el,"TABLE") -3 // el.offsetTop + el. offsetParent.offsetTop - 3 ch.style.pixelLeft = el.offsetLeft + el.offsetWidth if (ch.style.pixelWidth==0) ch.style.pixelWidth = ch.offsetWidth+50 } } } function doHighlight(el) { el = getReal(el) if ("root"==el.className) { if ((menuActive!=null) && (menuActive!=el)) {clearHighlight(menuActive) } if (!active) { raiseMenu(el) } elseinkMenu(el) if ((active) && (menuActive!=el)) { cleanupMenu(menuActive) doMenuDown(el) } menuActive = el lastHighlight=null } else { if (childActive!=null) if (!childActive.contains (el)) closeMenu(childActive, el) if (("TD"==el.tagName) && ("clear"!=el.className)) { var ch = getRootTable(el) if (ch.active!=null ) { if (ch.active!=el) { if (ch.active.className=="disabledhighlight") ch.active.className="disabled" else ch.active.className="" } } ch.active = el lastHighlight = el if ((el.className=="disabled") || (el.className=="disabledhighlight") || (el.id=="break")) el.className = "disabledhighlight" else { if (el.id!="break") { el.className = "highlight" if (el._childItem==null) el. _childItem = getChildren(el) if (el._childItem!=null) { doMenuDown(el) } } } } } } function RemoveHighlight(el) { if (el!=null) if ((el.className=="disabled" ) || (el.className=="disabledhighlight")) el.className="disabled" else el.className="" } function cleanupMenu(el) { if (el==null) return for (var i = 0; i < el.all.length; i++) { var item = el.all[i] if (item.tagName=="TABLE") item.style.display = "" RemoveHighlight(item.active) item.active=null } } function closeMenu(ch, el) { var start = ch while (ch.className!="root") { ch = ch.parentElement if (((!ch.contains(el)) && (ch.className!= "root"))) { start=ch } } cleanupMenu(start) } function checkMenu() { if (document.all.menuBar==null) return if ((!document.all.menuBar.contains(event.srcElement) ) && (menuActive!=null)) {clearHighlight(menuActive) closeMenu(menuActive) active = false menuActive=null choiceActive = null } } function doCheckOut() { var el = event.toElement if ((!active) && (menuActive! =null) && (!menuActive.contains(el))) {clearHighlight(menuActive) menuActive=null } } function processKey() { if (active) { 스위치 (event.keyCode) { 사례 13: lastHighlight.click(); 부서지다; 사례 39: // 오른쪽 if ((lastHighlight==null) || (lastHighlight._childItem==null)) { var idx = menuActive.cellIndex // if (idx==menuActive.offsetParent.cells.length-2) if (idx==getElement(menuActive,"TR").cells.length-2) idx = 0 else idx++ newItem = getElement(menuActive,"TR").cells[idx] } else { newItem = lastHighlight._childItem.rows[ 0].cells[0] } doHighlight(newItem) break; 사례 37: //왼쪽 if ((lastHighlight==null) || (getElement(getRootTable(lastHighlight),"TR").id=="menuBar")) { var idx = menuActive.cellIndex if (idx==0 ) idx = getElement(menuActive,"TR").cells.length-2 else idx-- newItem = getElement(menuActive,"TR").cells[idx] } else { newItem = getElement(lastHighlight,"TR") while (newItem.tagName!="TD") newItem = newItem.parentElement } doHighlight(newItem) break; 사례 40: // 아래로 if (lastHighlight==null) { itemCell = menuActive._childItem curCell=0 curRow = 0 } else { itemCell = getRootTable(lastHighlight) if (lastHighlight.cellIndex==getElement(lastHighlight,"TR"). cells.length-1) { curCell = 0 curRow = getElement(lastHighlight,"TR").rowIndex+1 if (getElement(lastHighlight,"TR").rowIndex==itemCell.rows.length-1) curRow = 0 } else { curCell = lastHighlight.cellIndex+1 curRow = getElement(lastHighlight,"TR").rowIndex } } doHighlight(itemCell.rows[curRow].cells[curCell]) break; 사례 38: // up if (lastHighlight==null) { itemCell = menuActive._childItem curRow = itemCell.rows.length-1 curCell= itemCell.rows[curRow].cells.length-1 } else { itemCell = getRootTable(lastHighlight ) if (lastHighlight.cellIndex==0) { curRow = getElement(lastHighlight,"TR").rowIndex-1 if (curRow==-1) curRow = itemCell.rows.length-1 curCell= itemCell.rows[curRow] .cells.length-1 } else { curCell = lastHighlight.cellIndex - 1 curRow = getElement(lastHighlight,"TR").rowIndex } } doHighlight(itemCell.rows[curRow].cells[curCell]) break; if (lastHighlight==null) { curCell = menuActive._childItem curRow = curCell.rows.length-1 } else { curCell = getRootTable(lastHighlight) if (getElement(lastHighlight,"TR").rowIndex==0) curRow = curCell .rows.length-1 else curRow = getElement(lastHighlight,"TR").rowIndex-1 } doHighlight(curCell.rows[curRow].cells[0]) break; } } } function make_menu() { document.write("<table width='100%' cellpadding='0'cellspacing='0' border='0' style='배경=rgb(212,208,200); BACKGROUND: 버튼페이스; BORDER-BOTTOM: 버튼 그림자 1px 단색; BORDER-LEFT: 버튼 강조 1px 단색;'>"); document.write("<tr><TD><SPAN 클래스=handbtn></SPAN></TD><td>"); document.write("<TABLE ID=menuBar ONSELECTSTART='거짓 반환' ONCLICK='processClick()' ONMOUSEOVER='doHighlight(event.toElement)' ONMOUSEOUT='doCheckOut()' ONKEYDOWN='processKey()'><TR >"); j=1; while(eval("window.OutBarFolder"+j)) j++; 나는=1; while(i<j) { Folder=eval("OutBarFolder"+i) document.write("<TD NOWRAP CLASS=root>"+Folder[0]+"<TABLE CELLSPACING=0 CELLPADDING=0>"); MakeItems(폴더); document.write("</TABLE>"); 나++; } document.write("</TD></TR></TABLE>"); document.write("</td><td width=100% ONMOUSEOVER='processClick()'></td></tr></table>"); } function MakeItems(Folder) { var 항목=0; while(폴더[항목+1]) 항목+=5; 항목/=5; for(var i=1;i<items*5;i+=5) { /* if(Folder[i+1]=="BREAK") { document.write("<TD NOWRAP ID=break><HR> </TD>"); } else { document.write("<TR><TD NOWRAP>"+Folder[i+1]+"</TD></TR>"); } */ document.write("<TR><TD NOWRAP"+((Folder[i+0]=="none")?"":" ID='"+Folder[i+0]+"'" )+((폴더[i+3]=="없음")?"":" onclick="go(1,'"+폴더[i+3]+"')"")+">" +((폴더[i+1]=="기본값")?"":"<font color="+Folder[i+1]+">")+폴더[i+2]+((폴더[i +1]=="기본값")?"":"</font>")+"</TD></TR>"); //alert("<TR><TD NOWRAP "+((Folder[i+0]=="없음")?"":"ID='"+Folder[i+0]+"'")+( (폴더[i+3]=="없음")?"":" onclick=go(1,'"+폴더[i+3]+"')")+">"+((폴더[i+ 1]=="기본값")?"":"<font color="+Folder[i+1]+">")+폴더[i+2]+((폴더[i+1]=="기본값 ")?"":"</font>")+"</TD></TR>"); } } function go(i,iurl) { 스위치 (i) { 사례 1 : parent.location=iurl;break; //返回首页 사례 2 : top.main.location='login.htm';break; //실행 사례 3 : top.main.location='shenqing.htm';break; // 참고 사례 4 : top.main.location='addnew.asp';break; //새로운 업데이트 사례 5 : top.main.location='index1.asp';break; //계속 사례 6 : //상계 var obj=top.main var str=obj.location.href; if(str.indexOf("index1")>0) obj.location="index1.asp@page="+obj.document.all("ppage").value; 그렇지 않으면 obj.location="index1.asp"; 부서지다; 사례 7: //下一页 var obj=top.main var str=obj.location.href; if(str.indexOf("index1")>0) obj.location="index1.asp@page="+obj.document.all("npage").value; 그렇지 않으면 obj.location="index1.asp"; 부서지다; 사례 8: //最后一页 var obj=top.main var str=obj.location.href; if(str.indexOf("index1")>0) obj.location="index1.asp@page="+obj.document.all("epage").value; 그렇지 않으면 obj.location="index1.asp"; 부서지다; 사례 9: top.main.location='editinfo.asp';break; 사례 10: top.main.location='quit.asp';break; 사례 11: top.main.location='userinfo.asp';break; 사례 12: var newwin=top.open("http://www.downcodes.com"); newwin.focus(); 부서지다; } } make_menu(); </SCRIPT>