【jQuery】coordinate


用網頁來拉UI的話,可以由這邊來看出X/Y的座標。

  1. 放在<head> </head>之間,<title>上面。
     
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript"> 
    jQuery(document).mousemove(function(event) {
            document.Show.MouseX.value = event.pageX;
            document.Show.MouseY.value = event.pageY;
     });
  2. 放在<body></body>之間。
    X:<input type="text" name="MouseX" value="0" size="4"> 
    Y:<input type="text" name="MouseY" value="0" size="4">
 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com