http://www.1000year.com/blog/834/

var offsettop=$("#form1 table").offset().top;   
         var offsetleft=$("#form1 table").offset().left;  
         $("#prompt").css({position: "absolute",'top':offsettop,'left':offsetleft,'z-index':2});