JS代码为下面的,放到内容处即可
<script>
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "
本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
<script>
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "
本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
<script>
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "
本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
本文来自 长河日志 YL'S blog:http://www.80y.com.cn/read-974.html