한국어
<HTML> <HEAD> <TITLE></TITLE> <META content="text/html; charset=gb2312" http-equiv=Content-Type> <META content="MSHTML 5.00.2920.0" name=GENERATOR> <script > <!-- // 메뉴 객체 function contextMenu() { this.items = new Array(); this.addItem = 함수(항목) { this.items[this.items.length] = 항목; } this.show = 함수(oDoc) { var strShow = ""; var i; strShow = "<div id="rightmenu" style="배경색상: #ffffff; 테두리: #000000 1px 솔리드; 왼쪽: 0px; 위치: 절대; 상단: 0px; 가시성: 숨김; Z-인덱스: 10">"; strShow += "<테이블 테두리="0" 높이=""; strShow += this.items.length * 20; strShow += "" cellpadding="0"cellspacing="0" >"; strShow += "<tr height="3"><td bgcolor="#d0d0ce" width="2"></td><td>"; strShow += "<테이블 테두리="0" 너비="100%" 높이="100%" cellpadding=0 셀 간격=0 bgcolor="#ffffff">"; strShow += "<tr><td bgcolor="#d0d0ce" width="23"></td><td><img src=" " height="1" border= "0"></td></tr></table>"; strShow += "</td><td width="2"></td></tr>"; strShow += "<tr><td bgcolor="#d0d0ce"></td><td>"; strShow += "<테이블 테두리="0" 너비="100%" 높이="100%" cellpadding=3 셀 간격=0 bgcolor="#ffffff">"; oDoc.write(strShow); for(i=0; i<this.items.length; i++) { this.items[i].show(oDoc); } strShow = "</table></td><td></td></tr>"; strShow += "<tr 높이="3"><td bgcolor="#d0d0ce"></td><td>"; strShow += "<테이블 테두리="0" 너비="100%" 높이="100%" cellpadding=0 셀 간격=0 bgcolor="#ffffff">"; strShow += "<tr><td bgcolor="#d0d0ce" width="23"></td><td><img src=" " height="1" border= "0"></td></tr></table>"; strShow += "</td><td></td></tr>"; strShow += "</table></div>n"; oDoc.write(strShow); } } // 메뉴 항목 객체 function contextItem(text, icon, cmd, type) { this.text = text ? 텍스트 : ""; this.icon = 아이콘 ? 아이콘 : ""; this.cmd = cmd ? cmd : ""; this.type = 유형 ? 유형 : "메뉴"; this.show = 함수(oDoc) { var strShow = ""; if(this.type == "menu") { strShow += "<tr "; strShow += "onmouseover="changeStyle(this, 'on');" "; strShow += "onmouseout="changeStyle(this, 'out');" "; strShow += "onclick=""; strShow += this.cmd; strShow += "">"; strShow += "<td class="ltdexit" width="16">"; if (this.icon == "") strShow += " "; else { strShow += "<img border="0" src=""; strShow += this.icon; strShow += "" width="16" height="16" style= "위치: 상대"></img>"; } strShow += "</td><td class="mtdexit">"; strShow += this.text; strShow += "</td><td class="rtdexit" width="5"> </td></tr>"; } else if (this.type == "separator") { strShow += "<tr><td class="ltdexit"> </td>"; strShow += "<td class="mtdexit" colspan="2"><hr color="#000000" size="1"></td></tr>"; } oDoc.write(strShow); } } functionchangeStyle(obj, cmd) { if(obj) try { var imgObj = obj.children(0).children(0); if(cmd == 'on') { obj.children(0).className = "ltdfocus"; obj.children(1).className = "mtdfocus"; obj.children(2).className = "rtdfocus"; if(imgObj) { if(imgObj.tagName.toUpperCase() == "IMG") { imgObj.style.left = "-1px"; imgObj.style.top = "-1px"; } } } else if(cmd == 'out') { obj.children(0).className = "ltdexit"; obj.children(1).className = "mtdexit"; obj.children(2).className = "rtdexit"; if(imgObj) { if(imgObj.tagName.toUpperCase() == "IMG") { imgObj.style.left = "0px"; imgObj.style.top = "0px"; } } } } catch (e) {} } function showMenu() { var x, y, w, h, ox, oy; x = 이벤트.클라이언트X; y = 이벤트.클라이언트Y; var obj = document.getElementById("rightmenu"); if (obj == null) true를 반환합니다. ox = document.body.clientWidth; oy = document.body.clientHeight; if(x > ox || y > oy) false를 반환합니다. w = obj.offsetWidth; h = obj.offsetHeight; if((x + w) > ox) x = x - w; if((y + h) > oy) y = y - h; obj.style.posLeft = x + document.body.scrollLeft; obj.style.posTop = y + document.body.scrollTop; obj.style.visibility = "표시됨"; 거짓을 반환; } function hideMenu() { if(event.button == 0) { var obj = document.getElementById("rightmenu"); if (obj == null) true를 반환합니다. obj.style.visibility = "숨김"; obj.style.posLeft = 0; obj.style.posTop = 0; } } 함수 writeStyle() { var strStyle = ""; strStyle += "<STYLE 유형=텍스트/css>"; strStyle += "TABLE {글꼴 계열: "Tahoma","Verdana","宋体"; 글꼴 크기: 9pt}"; strStyle += ".mtdfocus {BACKGROUND-COLOR: #ccccff; 테두리-하단: #000000 1px 단색; BORDER-TOP: #000000 1px 단색; 커서: 손}"; strStyle += ".mtdexit {배경색: #ffffff; 테두리-하단: #ffffff 1px 단색; 테두리-상단: #ffffff 1px 단색}"; strStyle += ".ltdfocus {BACKGROUND-COLOR: #ccccff; BORDER-BOTTOM: #000000 1px 실선; BORDER-TOP: #000000 1px 실선; BORDER-LEFT: #000000 1px 실선; 커서: 손}"; strStyle += ".ltdexit {BACKGROUND-COLOR: #d0d0ce; BORDER-BOTTOM: #d0d0ce 1px solid; BORDER-TOP: #d0d0ce 1px solid; BORDER-LEFT: #d0d0ce 1px solid}"; strStyle += ".rtdfocus {BACKGROUND-COLOR: #ccccff; BORDER-BOTTOM: #000000 1px 실선; BORDER-TOP: #000000 1px 실선; BORDER-RIGHT: #000000 1px 실선; 커서: 손}"; strStyle += ".rtdexit {BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-RIGHT: #ffffff 1px solid}"; strStyle += "</STYLE>"; document.write(strStyle); } function makeMenu() { var myMenu, item; var 홈페이지_cmd = "this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.downcodes.com/'); return false;"; var favorite_cmd = "window.external.addFavorite('http://www.downcodes.com/','建站school院'); return false;"; var viewcode_cmd = "window.location = 'view-source:' + window.location.href"; myMenu = 새로운 contextMenu(); item = new contextItem("返回主页", "", "top.location='http://www.downcodes.com/';", "menu"); myMenu.addItem(item); item = new contextItem("设为主页", "", 홈페이지_cmd, "menu"); myMenu.addItem(item); item = new contextItem("添加到收藏夹", "", favorite_cmd, "menu"); myMenu.addItem(item); item = new contextItem("정보 작성자", "", "location.href='mailto:info@downcodes.com'", "menu"); myMenu.addItem(item); item = new contextItem("", "", "", "separator"); myMenu.addItem(item); item = new contextItem("察看源码", "", viewcode_cmd, "menu"); myMenu.addItem(item); myMenu.show(this.document); 항목 삭제; 내 메뉴 삭제; } functionggleMenu(isEnable) { if(isEnable) document.oncontextmenu = showMenu; else document.oncontextmenu = new function() {return true;}; } writeStyle(); makeMenu(); document.onclick = hideMenu; document.oncontextmenu = showMenu; file://--> </script> </HEAD> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"> <table border="0" width="100% " height="100%" cellpadding="0" cellpacing="3"> <tr><td valign="top"> <div id="docBoard" style="width: 100%"> 超酷的XP风格的网页右键菜单特效代码http://www.downcodes.com/htmldata/sort/5.html </div> </td> <td valign="top" align="right"> <p><입력 유형 ="checkbox" name="closerm" onclick="toggleMenu(!this.checked);">关闭右键菜单</p> </td> </tr> </table> </body> </HTML>