1 function continueAdd(obj)
2 {
3 //璁劇疆鏄劇ず浣嶇疆
4 var left=calulateoffset(obj,"offsetLeft");
5 var top=calulateoffset(obj,"offsetTop")+obj.offsetHeight;
6 var table1=document.getElementById("table1");
7 table1.style.left=100+left+"px";
8 table1.style.top=top+"px";
9 document.all.table1.style.display="block";
10 }
11
12 //璁$畻鏄劇ず浣嶇疆鍑芥暟
13 function calulateoffset(field,attr)
14 {
15 var offset=0;
16 while(field)
17 {
18 offset+=field[attr];
19 field=field.offsetParent;
20 }
21 return offset;
22 }
23
璁板緱瑕佸畾涔塪iv鐨刾osition 涓篴bsolute
1 <DIV id=table1 style="POSITION: absolute">
闄刴ose鍙樹負鎵嬪瀷:course:handle

]]>