S
stan k.
First of all let me clarify - I am not talking about having a bunch of
images loaded all at once (or preloaded) and then controlling the
display of the images after that point -- I know that can be done. I
am talking about controlling the loading of those images themselves.
I was told that the only way to do this was to dynamically write the
html code via javascript and put time delays inbetween the dynamic
creation of that html
such as:
-
function DelayedWrite(){
window.setTimeout('DelayedWrite()',3000);
document.write("<img src="http://remoteurl/verybigimage1.jpg");
window.setTimeout('DelayedWrite()',3000);
document.write("<img src="http://remoteurl/verybigimage2.jpg");
// etc . . .
}
onload = window.setTimeout('DelayedWrite()',3000);
-
What is occuring is that the initial time delay onload works but the
delays
within the function itself do not seem to do anything...
Anyone have any ideas about how this can be done? perhaps a totally
different approach even?
The reason why I need to do this is I am pulling some pretty big
images of weather maps from another site and presumably when I attempt
to load several of the maps at once, the remote server thinks it's a
Denial Of Service (dos) attack and ends up blocking the loading of any
more images.
images loaded all at once (or preloaded) and then controlling the
display of the images after that point -- I know that can be done. I
am talking about controlling the loading of those images themselves.
I was told that the only way to do this was to dynamically write the
html code via javascript and put time delays inbetween the dynamic
creation of that html
such as:
-
function DelayedWrite(){
window.setTimeout('DelayedWrite()',3000);
document.write("<img src="http://remoteurl/verybigimage1.jpg");
window.setTimeout('DelayedWrite()',3000);
document.write("<img src="http://remoteurl/verybigimage2.jpg");
// etc . . .
}
onload = window.setTimeout('DelayedWrite()',3000);
-
What is occuring is that the initial time delay onload works but the
delays
within the function itself do not seem to do anything...
Anyone have any ideas about how this can be done? perhaps a totally
different approach even?
The reason why I need to do this is I am pulling some pretty big
images of weather maps from another site and presumably when I attempt
to load several of the maps at once, the remote server thinks it's a
Denial Of Service (dos) attack and ends up blocking the loading of any
more images.