posts - 0,  comments - 5,  trackbacks - 0
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          留言簿(1)

          我參與的團隊

          文章分類

          文章檔案

          相冊

          http://www.aygfsteel.com/beansoft

          搜索

          •  

          最新評論

          x:設(shè)置或者是得到鼠標相對于目標事件的父元素的外邊界在x坐標上的位置。
          clientX:相對于客戶區(qū)域的x坐標位置,不包括滾動條,就是正文區(qū)域。
          offsetx:設(shè)置或者是得到鼠標相對于目標事件的父元素的內(nèi)邊界在x坐標上的位置。
          screenX:相對于用戶屏幕。
          <table border=1 cellpadding=15 cellspacing=15 style="position:relative;left:100;top:100">
          <tr><td>
          <div onclick="show()" style="background:silver;cursor:hand">
          Click here to show.?
          </div>
          </td></tr>
          </table>
          <script>
          function show(){
          alert("window.event.x:"+window.event.x+"\nwindow.event.y:"+window.event.y+"\nevent.clientX:"+event.clientX+"\nevent.clientY:"+event.clientY+"\nevent.offsetX:"+event.offsetX+"\nevent.offsetY:"+event.offsetY+"\nwindow.event.screenX:"+window.event.screenX+"\nwindow.event.screenY:"+window.event.screenY);
          }
          </script>

          posted on 2007-12-21 19:04 crazy 閱讀(200) 評論(0)  編輯  收藏 所屬分類: javasrcipt
          主站蜘蛛池模板: 和平县| 武安市| 来凤县| 勃利县| 达尔| 梓潼县| 上蔡县| 阜平县| 广安市| 晋中市| 马鞍山市| 贵定县| 汉中市| 滕州市| 中牟县| 光泽县| 平舆县| 枞阳县| 虞城县| 沅江市| 靖安县| 武乡县| 皮山县| 石阡县| 连江县| 油尖旺区| 澄迈县| 如皋市| 奎屯市| 武宣县| 鄂尔多斯市| 东明县| 黄龙县| 顺平县| 资源县| 双流县| 福泉市| 梁河县| 高雄县| 墨玉县| 双柏县|