nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script> <BR>function click(e) { <BR> if (document.all) { <BR> if (event.button==1||event.button==2||event.button==3) { <BR> oncontextmenu='return false'; <BR> } <BR> } <BR> if (document.layers) { <BR> if (e.which == 3) { <BR> oncontextmenu='return false'; <BR> } <BR> } <BR> } <BR> if (document.layers) { <BR> document.captureEvents(Event.MOUSEDOWN); <BR> } <BR> document.onmousedown=click; <BR> document.oncontextmenu = new Function("return false;") <br><br> var travel=true <BR> var hotkey=17 /* hotkey即为热键的键值,是ASII码,这里99代表c键 */ <BR> if (document.layers) <BR> document.captureEvents(Event.KEYDOWN) <BR> function gogo(e) <BR> { if (document.layers) { <BR> if (e.which==hotkey&&travel){ <BR> //alert("操作错误.或许是您按错了按键!"); <BR>} } <BR> else if (document.all){ <BR> if (event.keyCode==hotkey&&travel){ <BR>//alert("操作错误.或许是您按错了按键!"); <BR>}} <BR> } <br><br>document.onkeydown=gogo <BR></script>
<script></script>