Das <div> wird einfach nicht absolut positioniert. Warum nicht? Hier noch der Quellcode:
document.getElementById("hallo").position = "absolute;";
document.getElementById("hallo").top = top + ";";
document.getElementById("hallo").left = "0;";
Da fehlt jedesmal ein style. Außerdem sind die Semikolons überflüssig, wenn nicht falsch.
So müsste es gehen: (Allerdings ungetestet)
document.getElementById("hallo").style.position = "absolute";
document.getElementById("hallo").style.top = top;
document.getElementById("hallo").style.left = 0;
MfG Jonathan