ok here is my loop:
this loop is supposed to go through and hide the division divMover with whatever number i is (if i is 3 it hides the division divMover3), then show the div with the value of i plus 1..I'm guessing that I didn't put that string together right because it dosen't work. Also is there away to set a timeout to make it wait before the next cycle through?
-Greg
Code:
function startLoop() {
num = 96
for (i=0; i<num; i++) {
iShow = i++
document.getElementById('divMover + i').style.visibility = 'hidden';
document.getElementById('divMover + iShow').style.visibility = 'visible';
}
}
this loop is supposed to go through and hide the division divMover with whatever number i is (if i is 3 it hides the division divMover3), then show the div with the value of i plus 1..I'm guessing that I didn't put that string together right because it dosen't work. Also is there away to set a timeout to make it wait before the next cycle through?
-Greg