js代码复制文章粘贴后带网址

| |
[不指定 2008/09/22 10:10 | by sunle ]

<script type="text/javascript">
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "rn本篇文章来源于 宠物迷|www.petsfans.cn 原文链接:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
Tags: , ,

网站制作 | 评论(0) | 引用(0) | 阅读(114)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]