300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 设置版权声明html js复制内容加版权声明代码

设置版权声明html js复制内容加版权声明代码

时间:2021-12-03 06:23:52

相关推荐

设置版权声明html js复制内容加版权声明代码

当别人复制你的文章内容时,会在文章末尾自动添加一个版权声明。网络版权意识薄弱,这个是君子做法,如果真要抄你的文章,声明再多都没用,就像我的网站底部声明一样,几乎是一个摆设,我也看开了。文章保留所有权利,如果你复制我的文章,没有按照我的声明,说不定哪天我心情好,就会找你聊聊天了……$("body").on(copy, function (e) {

if (typeof window.getSelection == "undefined") return; //IE8 or earlier...

var body_element = document.getElementsByTagName(ody)[0];

var selection = window.getSelection();

//if the selection is short lets not annoy our users

if (("" + selection).length < 30) return;

//create a div outside of the visible area

//and fill it with the selected text

var newdiv = document.createElement(div);

newdiv.style.position = absolute;

newdiv.style.left = -99999px;

body_element.appendChild(newdiv);

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。