中文(简体)
<!-- 将以下代码放到<body>区域中--> <script language="JavaScript"> <!-- if (window.Event) document.captureEvents(Event.MOUSEUP);函数 nocontextmenu() { event.cancelBubble = true event.returnValue = false;返回假; } function norightclick(e) { if (window.Event) { if (e.which == 2 || e.which == 3) return false; } } else if (event.button == 2 || event.button == 3) { event.cancelBubble = true event.returnValue = false;返回假; } } document.oncontextmenu = nocontextmenu; // 对于 IE5+ document.onmousedown = norightclick; // 对于所有其他 //--> </script>