复制文章出现文章转载来自己xxx的代码


关键字描述:文章 代码 自己 转载 出现 复制 " text text"

  COPY页面内容,自动在后面加上网站信息,利于SEO!
  
  按照侠客站长站的介绍,将代码放入网站HEAD区,或者任意地方:
  
  <script type="text/javascript">
  
  document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text "\r\n本篇文章来源于 www.phpstudy.net 原文链接:" location.href; clipboardData.setData("text", text); } }, 100 ) }
  
  </script>


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3