社区
JavaScript
帖子详情
急:在网页里如何知道鼠标在网页上的坐标
detrox
2003-05-05 11:28:23
急:在网页里如何知道鼠标在网页上的坐标
...全文
51
2
打赏
收藏
急:在网页里如何知道鼠标在网页上的坐标
急:在网页里如何知道鼠标在网页上的坐标
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wsj
2003-05-05
打赏
举报
回复
event.clientX
Retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
event.clientY
Retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
event.offsetX
Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.
event.offsetY
Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
event.screenX
Retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
event.screenY
Retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
event.x
Retrieves the x-coordinate of the mouse pointer's position relative to the parent element.
event.y
Retrieves the y-coordinate of the mouse pointer's position relative to the parent element.
youbest
2003-05-05
打赏
举报
回复
<html>
<body onmousemove="f()">
<INPUT id=aa>
<Script>
function f(){
aa.value="x:"+window.event.x+" y:"+window.event.y;
}
</Script>
</body>
</html>
Live Capture
添加
网页
截图按纽在截图工具栏上 # 发行版本: 1.0.8 发行日期: 2011-08-05 + 增加 增加后台直接对
网页
截图 增加命令行启动参数,谢 sanmoking@ACN 增加对矩形/全屏/固定模式下对特别窗口截图支持,如:...
Live Capture1.2.4
添加
网页
截图按纽在截图工具栏上 # 发行版本: 1.0.8 发行日期: 2011-08-05 + 增加 增加后台直接对
网页
截图 增加命令行启动参数,谢 sanmoking@ACN 增加对矩形/全屏/固定模式下对特别窗口截图支持,如:...
Unity模拟
鼠标
点击
先来理解
鼠标
点击,比如,你在浏览某些网站的时候,突然看到一张劲爆的美女图,心血来潮你想要看的更仔细是不是?于是你移动
鼠标
点了点美女,进入了新的页面,顿时看到了高清无码的美女图。爽!这是你人为控制的
鼠标
...
HTML当
鼠标
滑动边框出现,“
鼠标
移入显示悬浮框”特效【转】
1、效果说明在效果当中,当用户将
鼠标
移入一个块时,会从
鼠标
的移入方向滑入一个悬浮块,悬浮块会随着
鼠标
移出当前块,且滑出方向遵循
鼠标
的移出方向2、实现原理分析1、结构分析由于悬浮层有可能从上下左右四个方向...
制作一个图片跟随
鼠标
移动
今天我们来制作一个简易的
网页
计算器 我们对HTML进行布局。首先我们需要三个文本框,可以让我们输入内容。有了文本框还的有一个下拉框,下拉框是用来存储加减乘除的符号的。所以我们需要用一个select标签包裹option...
JavaScript
87,902
社区成员
224,615
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章