[javascript] 复制代码 代码如下: <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.which==2||e.which==3){ <BR> return 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> 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> 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.which==2||e.which==3){<BR> return 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> 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> document.onmousedown=clickIE4;<BR> document.onkeydown=OnDeny();<BR>}<br><br>document.oncontextmenu=new Function("return false");<BR>