Hi everyone
Does someone know how to load heavy images one after one with javascript?
The thing is that I need to have each image load after the previous one is finished loading. So no timer of any sort must be used.
And I would like to avoid the use of innerHTML because I need to separate the javascript from the HTML. The HTML is made of a div that contains all the images mixed with some texe. The javascript is supposed to loop through all images elements inside the div (I know how to do it), and then load each image while preventing the browser from loading everything at once (I don't know how to do it).
I use Prototype BTW.
Thanks in advance for any help
Does someone know how to load heavy images one after one with javascript?
The thing is that I need to have each image load after the previous one is finished loading. So no timer of any sort must be used.
And I would like to avoid the use of innerHTML because I need to separate the javascript from the HTML. The HTML is made of a div that contains all the images mixed with some texe. The javascript is supposed to loop through all images elements inside the div (I know how to do it), and then load each image while preventing the browser from loading everything at once (I don't know how to do it).
I use Prototype BTW.
Thanks in advance for any help