`
sgwood
  • 浏览: 119965 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

JS演示效果

阅读更多
这个文件我自己写的JS演示效果,提供给初学者下载研究!
<script>
	document.writeln("appCodeName:"+navigator.appCodeName+"<br/>");
	document.writeln("appName :"+navigator.appName+"<br/>");
	document.writeln("appVersion:"+navigator.appVersion+"<br/>");
	document.write("paltform:"+navigator.platform+"<br/>");
	document.write("userAgent:"+navigator.userAgent+"<br>");
	document.write("javaEnabled:"+navigator.javaEnabled()+"<br><br>");
	
	document.write("screen width:"+screen.width+"<br>");
	document.writeln("screen height:"+screen.height+"<br>");
	document.write("screen availWidth:"+screen.availWidth+"<br>");
	document.writeln("screen availHeight:"+screen.availHeight+"<br>");
	document.write("screen colorDepth:"+screen.colorDepth+"<br><br>");
	
	document.write("window name:"+window.name+"<br>");
	//document.write("window status:"+window.status+"<br>");
	status="say hello";
	document.write("window opener:"+window.opener+"<br>");
	document.write("self test:<a href=\"javascript:window.self.close();\">close self</a><br>");
	document.write("window top:"+window.top+"<br>");
	document.write("window location:"+window.location+"<br>");
	document.write("window history:"+window.history+"<br>");
	document.write("open() test:<a href=\"javascript:var myWin=window.open(\'1.htm\',\'_blank\',\'width=400,height=100,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes\');\">open me to create myWin,please secondly view this page!</a><br>");
	document.write("myWin close:<a href=\"javascript:myWin.close();\">close myWin</a><br>");
	document.write("open() test with status:<a href=\"javascript:var myWin2=window.open(\'1.htm\',\'_blank\',\'width=400,height=100,menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes\');\">open me to create myWin2,please secondly view this page!</a><br>");
	document.write("myWin2 close:<a href=\"javascript:myWin2.close();\">close myWin</a><br>");
	document.write("window bulr:<a href=\"javascript:window.blur();\">blur this window</a><br>");
	document.write("window focus:<a href=\"javascript:window.focus();\">focus this window</a><br>");
	document.write("window scrollTo:<a href=\"javascript:self.scrollTo(100,100);\">scrollTo this window</a><br>");
	document.write("window scrollBy:<a href=\"javascript:self.scrollBy(100,100);\">scrollBy this window</a><br>");
	document.write("window resizeTo:<a href=\"javascript:self.resizeTo(100,100);\">resizeTo this window</a><br>");
	document.write("window resizeBy:<a href=\"javascript:self.resizeBy(100,100);\">resizeBy this window</a><br><br>");
//	alert("hello");
//	confirm("say hello");
//prompt("请输入您的文本","say hello");
 document.write("history length:"+history.length+"<br>");
 document.write("history back:<a href=\"javascript:history.back();\">返回</a>");
 document.write("history forward:<a href=\"javascript:history.forward();\">前进</a><br>");
 document.write("history go(0) as location.reload()<a href=\"javascript:history.go(0);\">刷新本页</a><br><br>");
 
 document.write("location protocol:"+location.protocol+"<br>");
 document.write("location hostname:"+location.hostName+"<br>");
 document.write("location port:"+location.port+"<br>");
 document.write("location pathname:"+location.pathname+"<br>");
 document.write("location host:"+location.host+"<br>");
 document.write("location hash:"+location.hash+"<br>");
 document.write("location search:"+location.search+"<br>");
 document.write("location href:"+location.href+"<br>");
 document.write("location href 2: <a href=\"javascript:location.href='2.htm';\">test location href</a><br>");
 // document.write("location href 2: <a href=\"javascript:location='2.htm';\">test location href</a>");
document.write("location replace:<a href=\"javascript:location.replace('3.htm');\">test location replace</a><br><br>");

//document.write("document referrer:"+document.referrer+"<br>");
//document.write(document.cookie);
var expires = new Date();
expires.setTime(expires.getTime() + 3 * 30 * 24 * 60 * 60 * 1000);
/*   三个月 x 一个月当作 30 天 x 一天 24 小时
   x 一小时 60 分 x 一分 60 秒 x 一秒 1000 毫秒 */
document.cookie = 'name=rose;expires=' + expires.toGMTString();
document.write(document.cookie);
	</script>
  • 1.rar (1.2 KB)
  • 下载次数: 29
分享到:
评论
2 楼 sss999 2007-09-17  
appCodeName:Mozilla
appName :Microsoft Internet Explorer
appVersion:4.0 (compatible; MSIE 7.0; Windows NT 5.1)
paltform:Win32
userAgent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
javaEnabled:true
1 楼 sss999 2007-09-17  
你也太猛了,把所有属性写了一遍

相关推荐

    Roundabout.js演示6种图片立体旋转效果

    Roundabout.js是一个强大的JavaScript库,专为创建动态、立体感的图片轮播效果而设计。这个库利用CSS3的转换和动画特性,为网页设计师提供了六种独特的图片旋转效果,使得网页中的图片展示不再单调,提升用户体验。 ...

    很多JS效果演示集合包

    "很多JS效果演示集合包"是一个汇聚了多种JavaScript实现的交互效果资源,它涵盖了从简单的动画到复杂的用户界面元素。这个集合包旨在帮助开发者快速理解和应用这些效果,提升网站的用户体验。 首先,我们来探讨一下...

    原生js热门标签云球形仿flash动态效果演示页面

    "原生js热门标签云球形仿flash动态效果演示页面"是一个典型的实例,它展示了如何使用JavaScript(特别是原生JS,非jQuery等库)来创建类似Flash的动态效果,但又避免了Flash在现代Web环境中的兼容性和性能问题。...

    45种JavaScript缓冲效果集合演示

    在标题“45种JavaScript缓冲效果集合演示”中提到的“缓冲效果”,通常指的是动画平滑过渡的技术,这在网页设计中至关重要,因为它们能够提升用户体验,使页面元素的移动看起来更自然流畅。 缓冲效果主要通过调整...

    基于javaScript开发的鼠标移动阴影效果+源码+demo演示

    基于javaScript开发的鼠标移动阴影效果+源码+demo演示 基于javaScript开发的鼠标移动阴影效果+源码+demo演示 基于javaScript开发的鼠标移动阴影效果+源码+demo演示 基于javaScript开发的鼠标移动阴影效果+源码+...

    类似PPT演示稿效果的JavaScript幻灯片插件

    JavaScript幻灯片插件在网页设计中扮演着重要的角色,为用户提供了一种动态展示内容的方式,类似于传统的PPT演示。bespoke-fx是这样一款专为此目的设计的插件,它利用JavaScript和CSS3技术,提供了类似PPT的交互体验...

    最新Js实现带箭头轮播演示效果

    在本教程中,我们将探讨如何使用JS实现一个带箭头的轮播演示效果,这是一种常见的用户体验设计元素,常用于展示图片、广告或产品介绍。 一、轮播组件的基本结构 轮播组件通常包括以下部分: 1. 图片容器:用来存放...

    javascript常用震撼效果演示.rar

    这个"javascript常用震撼效果演示.rar"压缩包显然包含了多个JavaScript特效的实例,可以帮助开发者学习和实践JavaScript编程。 1. **动态下拉列表框**:在网页中,下拉列表框是常见的用户交互元素。通过JavaScript...

    近3000种javascript效果演示

    这个“近3000种JavaScript效果演示”集合为初学者提供了一个丰富的学习资源,涵盖了JavaScript在实际应用中的各种可能效果。 首先,我们要理解JavaScript的基本概念。JavaScript是解释型的、基于原型的、弱类型的...

    Node.js-Qov-终端演示工具

    Node.js是一个开源的、跨平台的JavaScript运行环境,允许开发者在服务器端执行JavaScript代码。利用其非阻塞I/O模型和事件驱动的特性,Node.js在构建高性能网络应用方面表现出色,尤其是对于处理大量并发连接的情况...

    javascript代码和网页演示

    这个名为"javascript代码和网页演示"的资源集合,显然是为了帮助初学者或开发者深入理解JavaScript在实际网页中的应用,通过源码分析和效果展示来提升技能。 首先,JavaScript的核心知识点包括变量、数据类型、控制...

    相机360度产品演示效果.zip

    【描述】"相机360度产品演示效果"的描述暗示了这个项目可能是一个基于Web的解决方案,通过JavaScript(JS)实现,用于创建互动式的360度产品视图。这种技术通常涉及到图像处理、动画和交互设计,以便用户能够通过...

    12款超酷图片展示JS代码演示

    标题“12款超酷图片展示JS代码演示”涉及的是使用JavaScript来实现创新且吸引人的图片展示效果。这些效果通常包括滑动展示、轮播、缩放、平移等,能够极大地提升用户体验,使网站或应用程序更加生动有趣。 描述中...

    deck.js演示花式扑克牌

    在描述中提到的"deck.js演示花式扑克牌"可能是指一种利用Deck.js库创建的扑克牌游戏或教学工具,展示了如何通过这个库来呈现扑克牌的多种玩法和效果。这可能包括洗牌动画、发牌过程、牌面显示以及各种扑克牌游戏的...

    jQuery+flipTimer演示倒计时与时钟效果

    jQuery+flipTimer演示倒计时与时钟效果 jQuery+flipTimer演示倒计时与时钟效果 jQuery+flipTimer演示倒计时与时钟效果 jQuery+flipTimer演示倒计时与时钟效果

Global site tag (gtag.js) - Google Analytics