Forums

This topic is locked

What is the best way to preload website images

Posted 18 Mar 2004 16:13:25
1
has voted
18 Mar 2004 16:13:25 ralph waters posted:
What's the best way to preload website images with javascript so when a person goes to it for the first time, all images appear instantly at once, and don't do the traditional loading in peices. I like how flash can do this very well but I also would like to acheive this in html as well. I want to load multiple images into the cache before the relevant webpage is displayed. I am running an iframe site.

Thanks,
Ralph.

Edited by - ralphieboy on 21 Mar 2004 11:45:23

Replies

Replied 20 Mar 2004 21:14:24
20 Mar 2004 21:14:24 Phil Shevlin replied:
DMX has a preload images bevahior
Replied 20 Mar 2004 21:36:08
20 Mar 2004 21:36:08 ralph waters replied:
Yes ,obvious, thank you, but it don't preload all images!!!
Replied 21 Mar 2004 08:46:18
21 Mar 2004 08:46:18 Dave Clarke replied:
Hi

So you want the entire page to load before it is displayed?

One way is to create a layer with nothing in it (except maybe - "loading... please wait" that covers the entire page, then apply a show/hide behaviour to the layer that hides it Onload.

Dave

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Replied 21 Mar 2004 20:43:35
21 Mar 2004 20:43:35 Phil Shevlin replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Yes ,obvious, thank you, but it don't preload all images!!!
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>Are you saying that if you tell it to preload ALL -- it doesn't?
Replied 22 Mar 2004 11:08:22
22 Mar 2004 11:08:22 ralph waters replied:
Yes, that's right.
What happens is, on pg 1, I apply a preload images command, then list all images I want loaded ie. some of the images will appear on pg 4, but they do not seem to preload and are not cached, and so take the usual time to load. it seems to be a fairly simple request, but it just don't seem 2 work.

Thanks.

Reply to this topic