没有办法完全解决,不过,在一定程度可以这样解决它:
禁止右键菜单:
<body oncontextmenu="return false">
禁止选择:
<body onselectstart="return false">
(禁止选择就可以禁止拷贝和粘贴了。)
还是那句话:没有办法完全解决,不过,在一定程度可以这样解决它。
不过,不推荐采用这种限制!

解决方案 »

  1.   

    脚本说明:
    把如下代码加入<head>区域中
    <script language="javascript">
    function click() {
    if (event.button==1) {  //改成button==2为禁止右键
    alert('对不起,禁止使用此功能.')
    }
    }
    document.onmousedown=click
    </script>禁止选择:
    <body onselectstart="return false">
      

  2.   

    <body
     onselectstart="return false"
     oncopy="return false"
     oncut="return false"
     onpaste="return false"
     oncontextmenu="return false"
    > onselectstart="return false"  //禁止选取网页上的内容
     oncopy="return false"         //禁止拷贝
     oncut="return false"          //禁止剪切
     onpaste="return false"        //禁止粘贴
     oncontextmenu="return false"  //禁止鼠标右键
      

  3.   

    <body oncontextmenu="return false">
    <body onselectstart="return false">
      

  4.   

    对右键的,我补充一下
    <script language="JavaScript"> 
    <!-- 
      
    if (window.Event)  
      document.captureEvents(Event.MOUSEUP);  
      
    function nocontextmenu()  

     event.cancelBubble = true 
     event.returnValue = false; 
      
     return 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; 
       return false; 
      } 
      

      
    document.oncontextmenu = nocontextmenu;  // for IE5+ 
    document.onmousedown = norightclick;  // for all others 
    //--> 
    </script>