谁能告诉我网页特效代码,禁止用鼠标左键选中?
来源:百度知道 编辑:UC知道 时间:2024/08/23 02:24:42
就是不能用鼠标左键去拉中一条文字,还禁止用右键。告诉我代码啊。
左右键全部屏蔽:
<script langauge="javasript">document.oncontextmenu=new Function('event.returnValue=false;');document.onselectstart=new Function('event.returnValue=false;');</script>
只屏蔽左键:
<body onselectstart="return false">
http://www.yidi.net/study/java/subiao/14.htm
http://www.syew.com/PretInfo.asp?Id=68