View Single Post
  #8 (permalink)  
Old Jul 23rd, 2007, 11:06
Zonglars Zonglars is offline
Reputable Member
Join Date: Jul 2007
Location: Windsor, ON, Canada
Age: 19
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Preloading images, anything i should know?

Already made the thumbnails myself, cause i want them all to be square, so i just do a zoomed in portion of the picture.

but how do you load *achoo!*... good god, my allergies are getting THAT bad?... where was I? oh yeah, how do you use javascript to load all the images at once? I'm sticking with my gallery design for now because it's relatively original, and the javascript only takes up 8 lines or so (just some DOM stuff), but if there's a way other than
Code: Select all
img1 = new Image();
img1.src = "http://www.host.com/username/pic.png";
I'd like to know, if it's more efficient without being too much more code.
Reply With Quote