摘要:
function Point(iX, iY){ this.x = iX; this.y = iY; } function fGetXY(aTag){ var oTmp=aTag; var pt = new Point(0,0); do { pt.x += oTmp.offsetLeft; pt.y += oTmp.offsetTop; oTmp = oTmp.offsetParent; } while(oTmp.tagName!="BODY"); return pt; } 如果想在触发事件的元素(例如文本框假如是myinput)下面弹出一个div 获取触发事件的元素 va. 阅读全文
posted @ 2012-04-18 17:53
DoubleLi
阅读(3383)
评论(0)
推荐(0)

浙公网安备 33010602011771号