tobyw_1969
07-13-2003, 08:38 PM
I've trawled through all the posts on this, and I can't find a straight forward answer...
I have a page which is made up of several GIFs which create an overall pattern - like most websites these days. But if they load one by one, it looks really crud, and ruins the final pleasing effect.
So..I want to make all the images pre-load, and then all display at once in one fleeting orgy of visual pleasure.
I tried to use a preload function like this....
function loader(){
imageA = new Image; imageA.src = "etc.GIF";
etc..
}
<BODY onload = "loader();">
But that only seems to be useful if you are preloading images which will be used in rollovers etc...the images on the page still display as they load up one by one.
The only code I saw in a post that tried to deal with this was HUGELY complex, about 100 lines of script, and seemed to include all kinds of arrays and for loops etc.
IS IT REALLY THIS COMPLICATED?
Can anyone tell me a simple, understandable way to achieve the effect of getting all images to display at the same time?
Thanks for a) reading all this and b) replying... :)
Toby
I have a page which is made up of several GIFs which create an overall pattern - like most websites these days. But if they load one by one, it looks really crud, and ruins the final pleasing effect.
So..I want to make all the images pre-load, and then all display at once in one fleeting orgy of visual pleasure.
I tried to use a preload function like this....
function loader(){
imageA = new Image; imageA.src = "etc.GIF";
etc..
}
<BODY onload = "loader();">
But that only seems to be useful if you are preloading images which will be used in rollovers etc...the images on the page still display as they load up one by one.
The only code I saw in a post that tried to deal with this was HUGELY complex, about 100 lines of script, and seemed to include all kinds of arrays and for loops etc.
IS IT REALLY THIS COMPLICATED?
Can anyone tell me a simple, understandable way to achieve the effect of getting all images to display at the same time?
Thanks for a) reading all this and b) replying... :)
Toby