<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function readMouseMove(e){
var X = document.getElementById('x_coords');
var Y = document.getElementById('y_coords');
X.innerHTML = e.clientX;
Y.innerHTML = e.clientY;
}
document.onmousemove = readMouseMove;
</script>
<title>Read Mouse Coordinates</title>
</head>
<body>
<table>
<tr>
<td colspan="2"><h1>Read Mouse Coordinates</h1></td>
</tr>
<tr>
<td><h2 id="x_coords">0</h2></td>
<td>X Positioning</td>
</tr>
<tr>
<td><h2 id="y_coords">0</h2></td>
<td>Y Positioning</td>
</tr>
</table>
</body
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
How to Read Mouse Coordinates using Javascript.zip
共2个文件
php:1个
jpg:1个
0 下载量 126 浏览量
2023-11-08
19:43:24
上传
评论
收藏 14KB ZIP 举报
温馨提示
JavaScript
资源推荐
资源详情
资源评论
收起资源包目录
How to Read Mouse Coordinates using Javascript.zip (2个子文件)
mouse_coords
screenshot.jpg 15KB
index.php 626B
共 2 条
- 1
资源评论
sanbaofengs
- 粉丝: 507
- 资源: 711
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功