PDA

View Full Version : preload


alain
10-10-2002, 12:51 PM
hello
there is a lot of images on my site . I'm looking for a script to preload images. That means , while someone is looking at an image another image is loading , then by clicking the second image is downloaded .Well, my english get better and better ha ha ;THANKS FOR an answer (if somebody understand what i've written )
Alain

augure3
10-11-2002, 01:32 AM
Hello Alain,


how should your site look? like a gallery with many pics or would will your visitor look for one pic after another?

greetings augure3

BoR|S
10-11-2002, 08:35 AM
<SCRIPT LANGUAGE = JAVASCRIPT>
if (document.images)
{
img1 = new Image();
img2 = new Image();
img1.src = "imageName1.gif";
img2.src = "imageName2.gif"
}
</SCRIPT>
This is what I found.

(Origin: NetMechanic (http://www.netmechanic.com/news/vol3/loadtime_no6.htm))