网站页面的鼠标右键加锁怎么加锁 啊?

来源:百度知道 编辑:UC知道 时间:2024/06/17 20:21:34

只要在加代码就行了.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoViewContextMenu"=dword:00000001(禁止在桌面、我的电脑中使用鼠标右键)
"NoTrayContextMenu"=dword:00000001(禁止在任务栏中使用鼠标右键)
"NoChangeStartMenu"=dword:00000001(禁止在开始菜单使用鼠标右键及拖放)
以下代码是禁止右键菜单及禁止全选的最好方法。

<script language="JavaScript">
document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
</script>