最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Code:findPosX 和 findPosY

 更新時間:2006年12月20日 00:00:00   作者:  
/**
 * Find the X position of an object, relative to the viewport
 * Code copied from quirksmode.org
 * @param obj Object to find x position for
 */
function findPosX(obj)
{
  var curleft = 0;
  if (obj.offsetParent)
  {
    while (obj.offsetParent)
    {
      curleft += obj.offsetLeft
      obj = obj.offsetParent;
    }
  }
  else if (obj.x)
    curleft += obj.x;
  return curleft;
}

/**
 * Find the Y position of an object, relative to the viewport
 * Code copied from quirksmode.org
 * @param obj Object to find y position for
 */
function findPosY(obj)
{
  var curtop = 0;
  if (obj.offsetParent)
  {
    while (obj.offsetParent)
    {
      curtop += obj.offsetTop
      obj = obj.offsetParent;
    }
  }
  else if (obj.y)
    curtop += obj.y;
  return curtop;
}

相關(guān)文章

最新評論

丰城市| 临泽县| 南皮县| 伊金霍洛旗| 吴旗县| 明光市| 重庆市| 喀什市| 通城县| 和田市| 香河县| 平和县| 惠东县| 临朐县| 马鞍山市| 镇雄县| 中江县| 毕节市| 大邑县| 旌德县| 泰州市| 新野县| 无极县| 屯留县| 定日县| 平昌县| 黄山市| 眉山市| 余江县| 乌兰察布市| 绥中县| 广宁县| 炉霍县| 晋江市| 富源县| 大兴区| 广德县| 阳江市| 城口县| 班戈县| 金寨县|