CSS set div 'top' with jquery from div 'height'
You will need to set the css property 'top' on the #footer div, not call .top() on the div itself.
$("#footer").css('top', $("#text").height() + "px");
or along those lines
Replace .top
with .offset({top: somenumber})
http://api.jquery.com/offset/