1、右键复制时显示提醒语
把上面代码放到footer.php里即可
<html>
<head><title>防复制</title><meta http-equiv="Content-Type" cont
ent="text/html; charset=utf-8" /></head>
<script>
function stop(){
alert('轻视盗版,尊重版权,人人有责!');
return false;
}
document.oncontextmenu=stop;
</script>
<body onselectstart="return false" onpaste="return false" oncop
y="return false;"
oncut="return false;" >
</body>
</html>
2、禁用一切复制性能
把上面代码放到footer.php里即可。
<script type="text/Javascript">
<!--
document.oncontextmenu=function(e){return false;};
document.onselectstart=function(e){return false;};
//-->
</script>
<style>
body{
-moz-user-select:none;
}
</style>
<SCRIPT LANGUAGE=javascript><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
<noscript><iframe src=*.html></iframe></noscript>
此代码完成:
1、制止鼠标左键选取内容。
2、制止鼠标右键复制性能。
3、制止应用ctrl键,无奈复制。
以上就是安达网络工作室关于《wordpress禁止复制内容的实现方法》的一些看法。更多内容请查看本栏目更多内容!
现在,WordPress CMS 主题越来越多,WordPress 作为 CMS 终究有那些共同的劣势,吸援用户去一直的延长扩大呢...
register_sidebar()(创立侧边栏) 建设一个侧边栏,用来搁置小工具。这个函数应用的时分请放在一个函数里,...
首先,什么是以后博客?和独自站点不同的是,Multisite会产生多个博客,称之为blog,即子站点(包括主站点)...
1、在仪表盘增加子菜单: add_submenu_page( 'index.php', … ); 2、在文章处增加子菜单: add_submenu...
这款插件称号叫Pretty Link Lite,插件主页:http://wordpress.org/extend/plugins/pretty-link/,也能够在...
1.用分类做为导航拦 <?php wp_list_categories('depth=2&title_li=0&orderby=name&show_count=0');?> 把这句...