在每个模板页放下面的代码
方法一:(比较简单)( 一般通用这种 )
<script language="JavaScript">
document.οncοntextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
</script>
方法二:禁止复制代码
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; οnresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body leftmargin=0 topmargin=0 οnmοusemοve='HideMenu()' οncοntextmenu="return false" οndragstart="return false" onselectstart ="return false" οnselect="document.selection.empty()" οncοpy="document.selection.empty()" onbeforecopy="return false" οnmοuseup="document.selection.empty()">
<noscript><iframe src=*></iframe></noscript>
把代码插入到模板文件中 模板文件夹在/templets/default/下 如果是首页禁止复制就插入到index.htm 的<body>放代码</body>的中间就可以了,一般是插入在 </body>的前面
更多关于dedecms织梦的文章,技术,要点等请移步《织梦csm与织梦模板》网站www.zymzm.cn,最后谢谢你的观看!