Heim  >  Artikel  >  Backend-Entwicklung  >  PHP程序中的特效应用实用代码珍藏_PHP教程

PHP程序中的特效应用实用代码珍藏_PHP教程

WBOY
WBOYOriginal
2016-07-20 11:05:38789Durchsuche

禁止屏蔽类

  1.禁止右键



  2.禁止选择



  3.禁止粘贴


 
  4.禁止直接访问 [必须框架内才行]

<script><br />if (top == self)top.location.href = "page.htm";<br /></script>

  5.禁止frame引用

<script><br />if (top != self)top.location.href = "page.htm";<br /></script>

  6.禁止功能键Shift,Alt,Ctrl

<script>function key(){<br />if(event.shiftKey) alert("Shift不答应使用!");} document.onkeydown=key; </script>

  数据取得类

  1.取得分辨率

<script>document.write("宽为" screen.Width "高为" screen.Height)</script>

  2.取得地址栏

<script>document.write(self.location)</script>

  3.取得地址栏后参数

<script>var add = top.location;<br />add = add.toString();<br />document.write (add.substring(add.indexOf("?") 1,add.length));<br /></script>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/445100.htmlTechArticle禁止屏蔽类 1.禁止右键 body oncontextmenu=return(false) 2.禁止选择 body onselectstart=return false 3.禁止粘贴 body onpaste=return false 4.禁止直接访问 [必须框...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn