编程人生

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2007年1月10日

摘要: 我们这里说说四种浏览器对 document.body 的clientHeight、offsetHeight 和 scrollHeight 的解释。这四种浏览器分别为IE(Internet Explorer)、NS(Netscape)、Opera、FF(FireFox)。clientHeight大家对 clientHeight 都没有什么异议,都认为是内容可视区域的高度,也就是说页面浏览器中可以看到... 阅读全文
posted @ 2007-01-10 11:50 choice 阅读(529) 评论(0) 推荐(0) 编辑

摘要: Definition and Usage定义与用法The onmouseup event occurs when a mouse button is released.当鼠标按键松开时触发onmouseup事件Syntax语法 onmouseup="所要执行的代码" Parameter参数 Description注释 SomeJavaScriptCode所要执行的代码 Required. Spec... 阅读全文
posted @ 2007-01-10 10:34 choice 阅读(2299) 评论(0) 推荐(0) 编辑

摘要: 描述event代表事件的状态,例如触发event对象的元素、鼠标的位置及状态、按下的键等等。event对象只在事件发生的过程中才有效。event的某些属性只对特定的事件有意义。比如,fromElement 和 toElement 属性只对 onmouseover 和 onmouseout 事件有意义。例子下面的例子检查鼠标是否在链接上单击,并且,如果shift键被按下,就取消链接的跳转。Cance... 阅读全文
posted @ 2007-01-10 10:23 choice 阅读(443) 评论(0) 推荐(0) 编辑

摘要: Definition and Usage定义与用法 The onmousemove event occurs when the mouse pointer is moved.当鼠标移动时触发onmousemove事件 Syntax语法 onmousemove="所要执行的代码" ... 阅读全文
posted @ 2007-01-10 10:03 choice 阅读(5796) 评论(1) 推荐(0) 编辑