side_split2
Sep 17th, 2007, 06:43 PM
There is an array. Each element in this array contains an image tag. There is a for loop and this is what it looks like:
for(i=0; i<=152; i++)
{
document.write(address[i])
}
This outputs to screen all images (Which is good so far), but when executing:
for(i=0; i<=152; i++)
{
setTimeout (document.write(address[i]), 50*i)
}
only the first image is displayed. My question is what can I do to get all images displayed with a slight pause in between each. You don't have to use setTimeout. Please help.
for(i=0; i<=152; i++)
{
document.write(address[i])
}
This outputs to screen all images (Which is good so far), but when executing:
for(i=0; i<=152; i++)
{
setTimeout (document.write(address[i]), 50*i)
}
only the first image is displayed. My question is what can I do to get all images displayed with a slight pause in between each. You don't have to use setTimeout. Please help.