function getTop(obj)
{ var pos={left:0,top:0};
while(obj)
{
pos.left+=obj.offsetLeft;
pos.top+=obj.offsetTop;
obj=obj.offsetParent;
}
return pos;
}
2022-11-13 23:07:54
function getTop(obj)
{ var pos={left:0,top:0};
while(obj)
{
pos.left+=obj.offsetLeft;
pos.top+=obj.offsetTop;
obj=obj.offsetParent;
}
return pos;
}