复制页面内容时自动加上网站信息

2009/08/28  |  2:54 下午分类:DEDECMS  |  标签:  |  2,185 views
<script type="text/javascript">
document.body.on_copy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本篇文章来源于 www.地址.COM 原文链接:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>

发表您的评论