通过代码的方式禁止别人复制粘贴你的内容
通过代码的方式禁止别人复制粘贴你的内容[*]<script type="text/javascript">
[*]document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = ""; clipboardData.setData("text",text); alert("禁止复制哦亲!"); } }, 100 ) }
[*]</script>
[*]
复制代码
复制以上代码放到后台全局 网站第三方统计代码中即可!
页:
[1]