I want to run this code, it changes the main image on the screen. It works fine after all the optional images are loaded, but not while they are loading.
document.all[ ‘DispImage’ ].src = source ;
It’s called from the onClick event of a link, if it’s called from the HREF of a link it stops all the optional images that haven’t finished loading from loading, which is not good as then you can’t see the images that are options to display.
I’ve tried putting alerts before and after this line of code and they are always triggered fine, but the image is still never displayed until all the images are loaded or at least most of the images are loaded. I think it maybe something to do with my PC (P4 2.66HT 1GB RAM & XP) but I doubt it.
The ideal is to have the images load away in there own time (obviously the faster the better) and be able to click on all the visible images (which are the links that display the pic in the main view area) and change between the visible ones.
Any help would be very much appreciated, or even pointers or explanations as to why the onClick will not work until the page has finished loading.
Many thanks in advance
Ross
PS. Don’t suppose anyone has a link to a stunningly brilliant Javascript resource site. Thanks.