<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 language="javascript"> <BR>function disableRightClick(e) <BR>{ <BR>var message = "右键禁用..."; <BR>if(!document.rightClickDisabled) // initialize <BR>{ <BR>if(document.layers) <BR>{ <BR>document.captureEvents(Event.MOUSEDOWN); <BR>document.onmousedown = disableRightClick; <BR>} <BR>else document.oncontextmenu = disableRightClick; <BR>return document.rightClickDisabled = true; <BR>} <BR>if(document.layers || (document.getElementById && !document.all)) <BR>{ <BR>if (e.which==2||e.which==3) <BR>{ <BR>alert(message); <BR>return false; <BR>} <BR>} <BR>else <BR>{ <BR>alert(message); <BR>return false; <BR>} <BR>} <BR>disableRightClick(); <BR></script> <br> </div> <br>使用方法,直接复制代码放到中即可。