Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slideshow

Status
Not open for further replies.

Brandi

Technical User
Aug 7, 2002
1
US
I need to add something to my slideshow so it will say "Loading...." until all images are ready to start cycling. How do I do this?
 
We need to see the rest of your code, but if you are using a preload image script, you can just place it at the end of that. Also, albeit quirkily, you can you the onload event of the body message. In IE you can alter the innerHTML of the container you keep your images in, otherwise you can hide and show a layer that says loading. jared@aauser.com
 
Hide and show! Hide and show ! css rules!
 
I am working on a similar problem! Only I can't use CSS to solve it.

How do I get the script(s) to wait until ALL the images are fully loaded before the slideshow begins?

I have been exploring 'image.complete' but can't get the logic right - how do I construct a loop that will simply wait until the images are loaded??? Is a loop the way to do it?

Here's the URL of the page I'm working on:

 
You could attach a variable to the image array in such a way that it gets set only when the array is full

-Ben "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
Ben, yeah, that would work but how do I set up a loop which will continue until the array is full? It would have to just keep rechecking and checking and checking... if it's a slow modem might be a while.

Do you know of a working example I could study, perhaps?

Regardless, thanks for the support!!

Z
 
P.s. that is one messed up page, you try following that link, the page locks up and cannot be closed without ctrl alt del, and I lost a download trying, thanks a pant load (Chet)

-Ben. "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top