有没有只禁止复制帖子内容的代码,不是全站文字禁止的 New
代码一document.onselectstart=new Function("event.returnValue=false;");
或者
代码二
1 贡献最佳答案
两个选择,放在后台第三方或css模板里。
1、把下边代码添加到后台\全局\网站第三方代码框里。
2、或把下边代码添加到 template\default\common\common.css 模板里。
.t_f, .t_f td { -moz-user-select:none; /*Firefox私有属性 */ -webkit-user-select:none; /*WebKit 内核私有属性*/ -ms-user-select:none; /*IE私有属性(IE10及以后) */ -khtml-user-select:none; /*KHTML 内核私有属性*/ -o-user-select:none; /*Opera 私有属性*/ user-select:none; /*css属性 */}
文強发表于2024-8-24 15:32:14
[*]详细答案 >
没见过 现成的代码……
估计要专门写一段js代码才行了, 只给 指定元素 添加 复制事件
两个选择,放在后台第三方或css模板里。
1、把下边代码添加到后台\全局\网站第三方代码框里。
<blockquote><style>
2、或把下边代码添加到 template\default\common\common.css 模板里。
.t_f, .t_f td { -moz-user-select:none; /*Firefox私有属性 */ -webkit-user-select:none; /*WebKit 内核私有属性*/ -ms-user-select:none; /*IE私有属性(IE10及以后) */ -khtml-user-select:none; /*KHTML 内核私有属性*/ -o-user-select:none; /*Opera 私有属性*/ user-select:none; /*css属性 */} 楼上第三方代码被吞掉了,上图:
防小白的,防不住我,哈哈 这个 楼主,这个防不住的。大不了截图时使用ocr识别,然后再复制。 虽然吞了,但你的网站里有,好用 虽然吞了,但你的网站里有,好用
页:
[1]