对菜鸟有点帮助的代码。大大也这样用。

禁止网页右键代码
<script language=”JavaScript”>
function document.oncontextmenu()
{window.event.returnValue=false;}
function document.onkeydown()
{if ((event.ctrlKey)&&(event.keyCode==78)) event.returnValue=false;}
function document.onselectstart()
{window.event.returnValue=false;}
</script>

设置网页无法保存的代码:
<noscript><iframe src=”error.htm”></iframe></noscript>

随机文章:

1、CentOS 7.x系统下安装Cisco AnyConnect服务器端
https://www.onexin.net/centos-7-x-cisco-anyconnect/

2、CentOS 5.6 发行注记
https://www.onexin.net/centos-5-6-release-notes/

3、探讨CSS技术在网页设计中的作用
https://www.onexin.net/explore-the-role-of-css-in-web-design/

4、[个人潜能8C]清除自我破坏和制造令人无法阻挡的自信
https://www.onexin.net/personal-potentials-8c-removal-of-self-destruction-and-the-manufacture-of-self-confidence-that-can-not-be-stopped/

5、CSS语法手册(六)分类属性
https://www.onexin.net/classification-properties-of-the-css-syntax-manual-6/

转载请注明出处:https://www.onexin.net/code-a-little-help-on-the-rookie-significantly-so/

Leave a Reply

Your email address will not be published. Required fields are marked *