PDA

View Full Version : How come this js preloader does not work?



orahorse
January 29th, 2008, 04:29 AM
Here is the page:
http://crocushale.com/preloadbouquets.html

The progress bar itself fills up, giving the impression that it is doing its job, but then when the preloaded page comes up, the user still has to wait for the rollovers to become active for their image-swaps.

I would be most grateful for any hints. Thanks for reading.

Also: How come a trout is biting this guy's head? :trout: Is it a web design reference?

dw8

borrob
January 29th, 2008, 07:33 AM
I think the problem is that you assigned the onload function to call the preloadImages function. this should result in the images being preloaded after the page is loaded. I think you should start preloading immediately by calling the function from within the javascript instead.

orahorse
January 31st, 2008, 07:59 PM
I was trying to point to the file by naming the PAGE and then the file in it, instead of the FOLDER with the file in the directory. Doy.

It works now. Thanks so much for taking the time to reply! Sorry for the delay in this, my own reply.