Home >php教程 >php手册 >PHP程序中的特效应用实用代码珍藏

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:21:561275browse

禁止屏蔽类

  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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn