Yes. Wrap it in a loop for.
for(var i = 0; i < sliderNav.length; i++) {
sliderNav[i].style.top = sliderNavInitial + sliderNavAdd*i + "px";
}
I think you should pick up the Intro to Programming book, though if you didn’t know about cycles (what point is a computer if it doesn’t care about duplicate materials for you?)
EDIT: By the way, the loop foris short for the following loop construct while:
var i = 0;
while(i < sliderNav.length) {
sliderNav[i].style.top = sliderNavInitial + sliderNavAdd*i + "px";
i++;
}
" " , , . ( while , , , , i++;, .)
user1207456