Reisender: DIVs gleichzeitig bewegen (sliden)

Beitrag lesen

Hallo Leute,
ich will mehrere DIVs gleichzeitig bewegen, zum bewegen (sliden) habe ich im Netz auch ein Script gefunden.
Mit einem DIV ist alles ok, aber mehr als ein DIV gleichzeitig funktioniert nicht.
Brauche ich da sowas wie ein Array und wenn wie geht das?
Da ich mich mit JS kaumg auskenne könnte ich eure Hilfe brauchen.

Das für ein Div funktionierende Script:

function init(){
if(document.getElementById){
obj = document.getElementById("pixel2");
obj.style.left = "-5px";
obj.style.top = "75px";
}
}

function slideRight(){
if(document.getElementById){
if(parseInt(obj.style.left) < 55){
obj.style.left = parseInt(obj.style.left) + 6 + "px";
setTimeout("slideRight()",50);
}
}
}

function slideUp(){
if(document.getElementById){
if(parseInt(obj.style.top) > 50){
obj.style.top = parseInt(obj.style.top) - 2 + "px";
setTimeout("slideUp()",50);
}
}
}

Vorab vielen Dank!