 <p>I think that instead of build a table of images I would put the first image and I would store the url of the others images ina javascript variable. Then, when you want to load the others images (timer, click event, ...) you just have to change the src parameter of the original image.</p>