<div class="codetitle"> <span><a style="CURSOR: pointer" data="51389" class="copybut" id="copybut51389" onclick="doCopy('code51389')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code51389"> <br><script 언어="javascript"> >function 비활성화RightClick (e) <br>{ <br>var message = "오른쪽 클릭이 비활성화되었습니다..."; <br>if(!document.rightClickDisabled) // 초기화 <br>{ <br>if(document.layers ) <br> { <br>document.captureEvents(Event.MOUSEDOWN); <br>document.onmousedown = 비활성화RightClick; <br>} <br>else document.oncontextmenu = 비활성화RightClick <br>return document.rightClickDisabled; <br>} <br>if(document.layers || (document.getElementById && !document.all)) <br>{ <br>if (e.which==2||e.which==3) <br>{ <br>alert(메시지); <br>return false <br>} <br>} <br>else <br>{ <br>alert(message) <br> } <br> } <br>disableRightClick(); <br></script> <br><br><br>코드를 복사하여 <head></head>에 넣으세요.</div>