2010年1月23日
摘要: <SCRIPT>var Demos = [];var nDemos = 8;// Demo variables// iMouseDown represents the current mouse button state: up or down/*lMouseState represents the previous mouse button state so that we cancheck for button clicks and button releases:if(iMouseDown && !lMouseState) // button just cli 阅读全文
posted @ 2010-01-23 12:51 冷 风 阅读(455) 评论(0) 推荐(0)
摘要: 71.JS中遇到脚本错误时不做任何操作:window.onerror = doNothing; 指定错误句柄的语法为:window.onerror = handleError; 72.JS中指定当前打开窗口的父窗口:window.opener,支持opener.opener...的多重继续. 73.JS中的self指的是当前的窗口 74.JS中状态栏显示内容:window.status="内容" 75.JS中的top指的是框架集中最顶层的框架 76.JS中关闭当前的窗口:window.close(); 77.JS中提出是否确认的框:if(confirm("Are you sure?")){alert("ok");}else{alert("Not Ok");} 78.JS中的窗口重定向:window.navigate("http://www.sina.com.cn"); 79.JS中的打印:window.print() 80.JS中的提示输入框:window.prompt("message","defaultReply"); 81.JS中的窗口滚动条:window.s 阅读全文
posted @ 2010-01-23 12:45 冷 风 阅读(151) 评论(0) 推荐(0)