[javascript] 复制代码代码如下: <BR>関数 clickIE4(){ <BR> if (event.button==2){ <BR> false を返す; <BR> } <BR>} <br><br>function clickNS4(e){ <BR> if (document.layers||document.getElementById&&!document.all){ <BR> if (e.that==2 ||e.that==3){ <BR> false を返します。 <BR> } <BR> } <BR>} <br><br>function OnDeny(){ <BR> if(event.ctrlKey ||event.keyCode==78 &&event.ctrlKey ||event.altKey || event.altKey &&event.keyCode==115){ <BR> false を返します。 <BR> } <BR>} <br><br>if (document.layers){ <BR> document.captureEvents(Event.MOUSEDOWN); <BR> document.onmousedown=clickNS4; <BR> document.onkeydown=OnDeny(); <BR>}else if (document.all&&!document.getElementById){ <BR> document.onmousedown=clickIE4; <BR> document.onkeydown=OnDeny(); <BR>} <br><br>document.oncontextmenu=new Function("return false"); <BR> <br>function clickIE4(){<br> if (event.button==2){<br> return false;<br> }<br>} <br><br>function clickNS4(e){<br> if (document.layers||document.getElementById&&!document.all){<br> if (e.this==2||e.that==3) ){<br> return false;<br> }<br> }<br>}<br><br>function OnDeny(){<br> if(event.ctrlKey ||イベント.keyCode==78 && イベント。 ctrlKey ||event.altKey ||event.altKey &&event.keyCode==115){<br> return false;<br> }<br>}<br><br>if (document.layers){<br> document.captureEvents(Event.MOUSEDOWN);<br> document.onmousedown=clickNS4;<br> document.onkeydown=OnDeny();<br>}else if (document.all&&!document.getElementById){<br> ドキュメント。 onmousedown=clickIE4;<br> document.onkeydown=OnDeny();<br>}<br><br>document.oncontextmenu=new Function("return false");<br>