2个回答
展开全部
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JQ获得鼠标位置-柯乐义</title>
<script type="text/javascript" src="jq/js/jquery.js"></script>
</head>
<body>
<a href="http://keleyi.com/a/bjac/8p1g5yeq.htm" target="_blank">原文</a>
<div id="mousePosition_keleyi_com" style="border:1px solid silver;width:219px;height:23px"></div>
<script type="text/javascript">
$(document).mousemove(function (e) {
var xy_keleyi_com="x坐标:"+ e.pageX+",y坐标:"+ e.pageY;
$("#mousePosition_keleyi_com").text(xy_keleyi_com);
})
</script>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JQ获得鼠标位置-柯乐义</title>
<script type="text/javascript" src="jq/js/jquery.js"></script>
</head>
<body>
<a href="http://keleyi.com/a/bjac/8p1g5yeq.htm" target="_blank">原文</a>
<div id="mousePosition_keleyi_com" style="border:1px solid silver;width:219px;height:23px"></div>
<script type="text/javascript">
$(document).mousemove(function (e) {
var xy_keleyi_com="x坐标:"+ e.pageX+",y坐标:"+ e.pageY;
$("#mousePosition_keleyi_com").text(xy_keleyi_com);
})
</script>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询