Invent

复制文章后自动加文章出处

您现在的位置: 摘星网络_临沂网站建设优化 > 网站建设 > 网络知识 >

<script type="text/javascript">

document.body.oncopy = function () {

setTimeout( function () {

var text = clipboardData.getData("text");

if (text) {

text = text + "\r\n文章来自:临沂网站制作(http://www.zxroom.net) 详细出处请参考:"+location.href; clipboardData.setData("text", text);

}

}, 100 )

}

</script>(


  • 上一篇:iframe背景透明
  • 下一篇:去掉表单上面1PX