|
|
- <SCRIPT language=JavaScript>
- <!--
- file://锁鼠标右键和键盘CONTEXTMENU键
- function click(e) {
- if (document.all) {//某些浏览器不提示
- if (event.button==2||event.button==3) { alert("欢迎光临,有什么需要帮忙的话,请与站长联系!谢谢您的合作!!!");
- oncontextmenu='return false';
- }
- }
- if (document.layers) {
- if (e.which == 3) {
- oncontextmenu='return false';
- }
- }
- }
- if (document.layers) {
- document.captureEvents(Event.MOUSEDOWN);
- }
- document.onmousedown=click;
- document.oncontextmenu = new Function("return false;")
- // -->
- </SCRIPT>
复制代码 |
|