织梦程序网站防采集复制提示版权超链接代码
将下面的js代码插入到文章内容页模板的<head>与</head>标签中间就行
<script language=”javascript” type=”text/javascript”>
<!–
document.body.oncopy = function () {
setTimeout( function () {
var text = clipboardData.getData(“text”);
if (text) {
text = text + “\r\n文章来自:darren中详文参考:”+location.href;
clipboardData.setData(“text”, text);
}
}, 100 )
}
–>
</script>