2009년 5월 20일 수요일

마우스 포지션 트래킹

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
   $().mousemove(function(e){
      $('#status').html(e.pageX +', '+ e.pageY);
   });
})
</script>
<body>
<h2 id="status">
0, 0
</h2>
</body>
</html>

댓글 없음:

댓글 쓰기