Click to See Complete Forum and Search --> : Cycling Image Error


Jasper777
10-09-2003, 05:57 PM
Alright, I'll try to do my best to fulfill the message posting requirments. This is my first time using java, so please bare with me....

I just put an image cycler on my page, and I think its working improperly. There are four pictures, and they are set to wait 20 seconds between each picture. The page is pausing, then downloading the pic each time. This is causing some of the pics to only half-load part of the time, and sometimes it skips one of the pics in the sequence all together and goes on to the next one. I have no clue what is wrong with it so I don't know what part of the code to post here. This is the link, I thought it would be easier for those interested to go there and view the source, if not let me know and I'll post the code for the cycler here. http://www.freewebs.com/ycmonline/

If any additional information is needed I'm sorry, let me know and I'll tell you everything about it that I can. I'm sorry if this is too vague...and I appreciate any help in advance :)

~Jasper

Dimitri
10-09-2003, 06:33 PM
Works fine for me. I think the problem is that your internet connection is too slow, so the image doesn't have a chance to load fully within those 20 seconds, before the script changes to the next file.

You may want to either increase the interval to 30 seconds or something like that, or resave the images into smaller files (so they download in less time).

You can also write the script to preload all the images in the background, prior to displaying them. That's another option as well (but will require that someone write the code to do that!). Therefore, the easiest fix is to try either of those two other things I suggested (increase the interval to 30, or resave the images into smaller files... or both.)

Cheers.
Dimitri

Jasper777
10-10-2003, 03:21 AM
Well....That's actually exactly what I was hoping to do. Figure out how to get the images all downloaded prior to the cycling, so I could change the interval to 5 seconds, rather than 20. Guess that's another project for another day ;) Thank you for the reply...at least now I know that's possible! Take care, thanks again,

~Jasper