不太好做啊....下面的代码效果不太好:
<div oncontextmenu="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" >
这些文字被保护了
</div>
<div>
这些文字可以COPY
</div>

解决方案 »

  1.   

    <body leftmargin=0 topmargin=0  oncontextmenu="return false"  onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" >
    000000000000
    <input type=button onclick="javascript:alert(document.body.oncontextmenu=null)" value="取消右键">
    <input type=button onclick="javascript:alert(document.body.onselectstart=null)" value="取消选取">
    <input type=button onclick="javascript:alert(document.body.onselect=null)" value="取消选取">
    <input type=button onclick="javascript:alert(document.body.oncopy=null)" value="取消复制">