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

禁止网页右键代码
<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、网络图形效果探索(三)
https://www.onexin.net/%e7%bd%91%e7%bb%9c%e5%9b%be%e5%bd%a2%e6%95%88%e6%9e%9c%e6%8e%a2%e7%b4%a2%ef%bc%88%e4%b8%89%ef%bc%89/

2、UCenter Home常用sql语句入门篇(一)
https://www.onexin.net/used-sql-statement-ucenter-home-getting-started-chapter/

3、获取内容中图片URL
https://www.onexin.net/image-url-for-content/

4、CSS 整形与优化工具
https://www.onexin.net/css-shaping-and-optimization-tools/

5、PHP今天0点UNIX时间戳
https://www.onexin.net/php-0-clock-today-unixtime/

Leave a Reply