Copyright @ 2015-2024 织梦园 版权所有 Power by DedeCms
鲁ICP备15039853号-2

模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
当复制文章内容时,自动加版权与文章详细页网址的实现方法:
将下面的js代码插入到文章内容页模板的<head>与</head>标签中间就行
<script language="javascript" type="text/javascript"> <!-- document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { texttext = text + "\r\n文章来自:www.dedeyuan.com<a href="http://www.dedeyuan.com/" target="_blank"><u>织梦模板</u></a>详文参考:"+location.href; clipboardData.setData("text", text); } }, 100 ) } --> </script> |