dedecms文章内容页复制自动添加版权,在<head>与</head>之间添加JS代码:
<script language=”javascript” type=”text/javascript”>
<!–
document.body.oncopy = function () {
setTimeout( function () {
var text = clipboardData.getData(“text”);
if (text) {
text = text + “\r\n文章来自:详文参考:”+location.href;
clipboardData.setData(“text”, text);
}
}, 100 )
}
–>
</script>
转载请注明:鹏程木业网
介绍了在DedeCMS文章内容页,当进行复制操作时自动添加版权信息的方法,即在特定位置添加JS代码,版权声明为“转载请注明:鹏程木业网”。
1万+

被折叠的 条评论
为什么被折叠?



