event.y: Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to the parent element. event.screenY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen. event.offsetY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event. event.clientY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
看看说明,哪个是你需要的。
看看说明,哪个是你需要的。
解决方案 »
- 大伙帮个忙:这个/^.[^:#\[\.,]*$/正则表达式什么意思
- js得不到遮罩层上的DIV 值,急.......
- JS有事件监听addEventListener和分发dispatchEvent吗?
- js 判断函数是否运行
- 求和运算~~~
- $('#sub').html() 无法加载div嵌套html的内容。
- 急!急!如何将input的type属性从radio改为checkbox
- 在CSS里面 background-image:url("td_test.gif"); 可否定义显示出来的背景是“拉伸”效果充满TD
- 如何使用javascript最小化ie浏览器
- ShowModalDialog 返回的值是xml格式,用js如何获取到"兰花",格式如下
- js链接acess数据库???
- 怎样判断一个字符串数据必须有5个逗号?
window.event.y + document.documentElement.scrollTop;