I am a JavaScript newbie and I want to pre-load all banner images when a user enters my site. I was wise enough to name all the images in a numerical fashion, i.e. banner1.jpg, banner2.jpg and so forth.

I know I have to use a loop to iterate though all the images, but my JavaScript skills are way too basic. Can anybody point me to a good tutorial or provide some code so I can play with it?