-
for-next looping..
;) hello there,
I learned to print 10 images on the screen using FOR LOOPING.
(for x=0;x<10;x++);
document.write('some.jpg')
this prints ten images side by side..
But What Iwant to do is clear all those 10 images one by one usin FOR looping...I think I need a setTime and how about FOR looping ...If I use /x-- /it doesnt work..please tell me how to reduce numbers f images...Thanks
-
Code:
for (x = 10; x > 0; x--);
-
1 Attachment(s)
You can't unload images in the same way because they are already written to the page.
The easiest thing to do is to swap each image for a blank one.
Here's an example I just wrote. It loads a set of blank images, then one by one loads a new image and then reloads the blank one again.
-
You could put those images in ten (or one) block level elements (div), then set the visibility to none or hidden.