View Full Version : temp internet files directory (image) recall query

rinky dink
08-21-2002, 11:53 PM
in the program im writing i use alot of images which i pre load into
an image array. (mostly for animated buttons)

when i run the page (uploaded on angelfire) it slowly downloads
them (expected)

when the page sometimes downloads it gets stuck and needs to
be refreshed to get it going again.

when i first download it, it takes about 2min35 to download them

all. if i refresh then about 220 and closing and reopening the
page in another window about the same. now if i press GO
it continues from where it left off re using the stored images.

i went to another page (www.ntlworld.com) and tested to see
how it operated. the first time i downloaded it, it took quite a
while. then i refereshed it and it took only a few seconds to
download and didnt need to reload the images. and the same
went for closing and opening up a new window and for GO too

so mine is obvioulsy not behaving like that and i dont know why.


my html images are address as


and my image array ones as

startbuttonup.src = "images/startup.gif"

if i added http:// etc would this rectify it or would it make no

is there something else im missing which sorts this out?

i would appreciate any help


08-21-2002, 11:59 PM
Make sure you put the script that preloads the images in the <head> section (I'm assuming you're preloading the images). If not, there are examples of exactly how to do this on http://www.javascriptkit.com !

rinky dink
08-22-2002, 12:29 AM
Well i assume i am pre loading the images correctly
(the way i was told in a book)

images = new Array(25);

for (i=0; i<15; i++)
images[columns] = new Array(3);

rinky dink
08-22-2002, 12:34 AM
Well i assume i am pre loading the images correctly
(the way i was told in a book)

images = new Array(5);

for (i=0; i<5; i++)
images[i] = new image();
images[i].src = 'blahblah' + i + '.gif'

though in the link you gave me it does it as

var theimages=document.images
for (i=0;i<theimages.length;i++)

is the document.images part something different and act in
a different way? i cant tell?

thanks for the help

08-22-2002, 12:43 AM
Nah, it's just going through a loop and adding the images to an array, same as your code. Can you post the URL where you are having probs?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum