怎样屏蔽鼠标右键? 如题,求给出代码. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function rightClick(){ //你的程序 return false;}document.oncontextmenu = rightClick; <script> function onKeyDown() { if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122)) { event.keyCode=0; event.returnValue=false; } } </script> <script> function yxl() { if(window.event.altKey) { window.event.returnValue=false; } } document.onkeydown=yxl </script><body bgcolor="#000000" text="#666666" onkeydown="onKeyDown()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" > <p></p> <p>< /p> <p></p> </body> <scrupt>function drag(){return false;}document.ondragstart=drag function stopmouse(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("不得使用右键! :)"); return false; } return true; } document.onmousedown=stopmouse; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=stopmouse; </SCRIPT> <body oncontextmenu='window.event.returnValue=false'> <body onContexMenu="return false" onSelectStart="return false"> 访问服务起路径问题 验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。 哪位大哥能帮我翻译一下,只有一小段 问个小问题 高分求解一个往dataset里面加数据 同一命名空间下的类是否能随便使用 请问用ASP还是ASP.NET编写语言能否用C#?? asp.net 遍历html控件问题? .net 以及java的登录验证机制 一个很奇怪listbox问题 请问为什么有的.aspx页面无法用css? 关于权限问题???急用!
{
//你的程序
return false;
}
document.oncontextmenu = rightClick;
function onKeyDown()
{
if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122))
{
event.keyCode=0;
event.returnValue=false;
}
}
</script> <script>
function yxl() {
if(window.event.altKey)
{
window.event.returnValue=false;
}
}
document.onkeydown=yxl
</script>
<body bgcolor="#000000" text="#666666" onkeydown="onKeyDown()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" >
<p></p>
<p>< /p>
<p></p>
</body>
function drag()
{return false;}
document.ondragstart=drag
function stopmouse(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
return false;
else if
(navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert("不得使用右键! :)");
return false;
}
return true;
}
document.onmousedown=stopmouse;
if (document.layers)
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=stopmouse; </SCRIPT>