码迷,mamicode.com
首页 > 编程语言 > 详细

JavaScript-4.6鼠标事件监听,获取鼠标坐标window.event---ShinePans

时间:2014-06-18 06:18:22      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   code   java   http   

<html>
	<head>
		<meta http-equiv="content-type" content="text/html" charset=GB2312"/>
		<title> 4.5 window.event应用 </title>
		<script>
			function body_onclick(){
				alert("鼠标点击的坐标是\r\nx:"+event.x+",y:"+event.y);
				}
				</script>
			</head>
			<body style="overflow:auto;padding:0px;margin:0px;"onclick="body_onclick();">
			</body>
		</html>



获取鼠标的坐标

课连续点击

bubuko.com,布布扣

bubuko.com,布布扣

JavaScript-4.6鼠标事件监听,获取鼠标坐标window.event---ShinePans,布布扣,bubuko.com

JavaScript-4.6鼠标事件监听,获取鼠标坐标window.event---ShinePans

标签:style   class   blog   code   java   http   

原文地址:http://blog.csdn.net/shinepan/article/details/31765057

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!