function offsetTop( elements ){
var top = elements.offsetTop ;
var parent = elements.offsetParent;
while( parent != null ){
top = parent.offsetTop;
부모 = parent.offsetParent;
};
상단 반납;
};
함수 offsetLeft( 요소 ){
var left = elements.offsetLeft;
var parent = elements.offsetParent;
while( parent != null ){
left = parent.offsetLeft;
부모 = parent.offsetParent;
};
부모님 반환;
};