<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦CMS实现复制文章自动加出处信息

时间:2020-12-15

假如发现自己辛苦创作的很多文章被别人复制或者采集而去,一个链接都不留下,你是不是会很气愤、很郁闷呢?不过好在我们还有一些基本保护措施可以减小损失, 那就是用javascript实现对文章原创作者的基本版权保护,在复制或者是采集时将自动加上文章的出处带上,其实实现这个功能的代码非常简单,只需要在内容页模板(article_*.htm)中的<body></body>区域内加入一下代码即可:

01 <script type="text/javascript"
02 document.body.oncopy = function (){  
03     setTimeout(function (){  
04         var text = clipboardData.getData("text");  
05         if (text){  
06             texttext = text + "rn本文转载于{dede:global.cfg_webname/}:{dede:global.cfg_basehost/}-原文链接:"+location.href;   
07             clipboardData.setData("text", text);  
08         }  
09     },100)  
10 }  
11 </script>

 好了,赶快试试吧!

0
首页
案例
关于
联系