Hallo Katrin,
document.getElementById("hallo").position = "absolute;";
kein ";", wie Jonathan schon schrieb.
document.getElementById("hallo").top = top + ";";
document.getElementById("hallo").left = "0;";
statt ";" hier "px". Positionsangaben benötigen eine Einheit.
<div id="hallo" style="position: absolute:0; top:0; left:0; cursor:pointer;" onclick="zentriere()">
absolute:0 kenne ich nicht.
Gruß, Jürgen