Java help please
Author
Discussion

nick_bbb

Original Poster:

5,514 posts

266 months

Monday 12th February 2007
quotequote all
I'm trying to add a slideshow to the top of my webpage but the script I have used seems to display the red cross of doom on the first image, once it cycles back through it seems to be OK. Is it just because the image is not yet loaded? Any ideas how to get round this?

This is the page in question...

www.grantgb.com/indexnew.htm

Thanks in advance

_dobbo_

14,619 posts

279 months

Monday 12th February 2007
quotequote all
Yo nick, you are correct it is because the image hasn't loaded. I'm not Javascript expert so I'm not certain, but I'm pretty sure you cdan preload an image in JS before displaying the page, it will slow down the initial page load time but will get around this.

nick_bbb

Original Poster:

5,514 posts

266 months

Monday 12th February 2007
quotequote all
Thanks dobbo, I've now added a preload image script but still no joy, I think the slideshow script must be have a bug confused

_dobbo_

14,619 posts

279 months

Monday 12th February 2007
quotequote all
Reached the limit of my javascript knowledge when I mentioned image preloading... Sorry!

nick_bbb

Original Poster:

5,514 posts

266 months

Monday 12th February 2007
quotequote all
_dobbo_ said:
Reached the limit of my javascript knowledge...


Me too, thanks anyway!

nick_bbb

Original Poster:

5,514 posts

266 months

Tuesday 13th February 2007
quotequote all
Don't worry I've got it sussed, will fix tonight