| 1.禁止复制网站文字 将以下代码添加到footer.php中的之间即可。<script type="text/Javascript"> document.onselectstart=function(e){return false;}; </script>[size=0.8em]ActionScript [size=0.8em][url=]Copy[/url]
 
 
 
 CSS3实现此功能(自行添加到合适的位置):body {-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}[size=0.8em]ActionScript [size=0.8em][url=]Copy[/url]
 
 (不推荐使用) 
 2.添加复制版权
 将以下代码添加到footer.php中的之间即可。<script type="text/javascript">function warning(){ if(navigator.userAgent.indexOf("MSIE")>0) { art.dialog.alert('复制成功,若要转载请务必保留原文链接,谢谢合作!'); } else { alert("复制成功,若要转载请务必保留原文链接,谢谢合作!"); }}document.body.oncopy=function(){warning();}</script>[size=0.8em]ActionScript [size=0.8em][url=]Copy[/url]
 
 (强烈推荐使用此方法) 
 3.禁止右键查看
 有人会说虽然禁止了复制网站文字,但是可以右键查看源码呀,别急,这还有更绝的方法。 将以下代码添加到footer.php中的之间即可。<script type="text/Javascript"> document.oncontextmenu=function(e){return false;}; </script>[size=0.8em]ActionScript [size=0.8em][url=]Copy[/url]
 
 (强烈不推荐) 
 |