复制内容自动加上链接
作者: 唐布拉草原 日期: 2008-01-03 13:03
<script>
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
评论: 2 |
引用: 0 |
阅读: 280
<script>
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
本文来自 长河日志 YL'S blog:http://www.lossr.net/read-974.html
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>
本文来自 长河日志 YL'S blog:http://www.lossr.net/read-974.html
发表评论
订阅
上一篇
返回
下一篇


document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本文来自 长河日志 YL'S blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>