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

禁止网页右键代码
<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>

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

随机文章:

1、Google Chrome 28正式发布:采用全新引擎Blink
https://www.onexin.net/chrome-28-released-the-new-engine-blink/

2、RedHat5上配置YUM方法以及YUM的使用方法
https://www.onexin.net/redhat5-methods-yum-and-yum-configured-to-use/

3、常用Rewrite规则在线生成
https://www.onexin.net/rewrite-rules-generate-common-line/

4、Discuz!Q Web 服务器其它推荐配置?
https://www.onexin.net/discuzq-web/

5、网页特效:导航条上的放大效果
https://www.onexin.net/%e7%bd%91%e9%a1%b5%e7%89%b9%e6%95%88%ef%bc%9a%e5%af%bc%e8%88%aa%e6%9d%a1%e4%b8%8a%e7%9a%84%e6%94%be%e5%a4%a7%e6%95%88%e6%9e%9c/

Leave a Reply