首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

实用珍藏代码举例

整理日期:2008年03月16日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-03/1205667476.html
<script>
if (top != self)top.location.href = "page.htm";
</script>

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

<script>function key(){
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;
add = add.toString();
document.write (add.substring(add.indexOf("?")+1,add.length));
Tags:
实用珍藏代码举例
'http://www.etoow.com/html/2008-03/1205667476.html
1
 
2
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved