禁止鼠标复制和右键

<script language="javascript">
document.oncontextmenu=function(){return false;}
document.onselectstart=function(){return false;}
document.ondragstart=function(){return false;}
document.onselect=document.selection.empty();
document.oncopy=document.selection.empty();
document.onbeforecopy=function(){return false;}
onmouseup=document.selection.empty();
</script>
posted @ 2010-04-02 08:22  王树羽  阅读(136)  评论(0编辑  收藏  举报