禁止屏蔽类
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>