wahsaga: absolute position messen

Beitrag lesen

hi,

hm nun weiß ich grnicht mehr weiter kannst du mal das script verändern?

Ja, und Nein.
(Theorie, Praxis)

#Impressum { position: relative; left:50%; top:50%;

Du positionierst also relativ 50% "von oben" und 50% "von links" entfernt.
Ergibst das erst mal ohne das Script die gewünschte Startposition?

ax = ax - 2;  //Pixel pro Aufruf
document.getElementById(a).style.left = ax + "px";

Welchen Wert hat ax?

ay = ay - 1;  //Pixel pro Aufruf
document.getElementById(a).style.top = ay + "px";

Welchen Wert hat ay?

Wie sieht der Effekt aus, wie weicht er von dem ab, was du erwartest?

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }