hello,
i use this code to preload image :
<script language="JavaScript">
<!--
function preloadimages() {
var d=document;
if(d.images){
if (!d.preload) { d.preload=new Array(); }
var i,j=d.preload.length,a=preloadimages.arguments;
for(i=0; i<a.length; i++) {
if (a[i].indexOf("#")!=0){ d.preload[j]=new Image;
d.preload[j++].src=a[i]; }
}
}
}
preloadimages('http://www.carlays.com/filedata/picture/w380h380/CA_P1_1_1769
643799.jpg','http://www.carlays.com/filedata/picture/w380h380/CA_P1_2_142876
519.jpg','http://www.carlays.com/filedata/picture/w380h380/CA_P1_3_396951326
..jpg','http://www.carlays.com/filedata/picture/w380h380/CA_P1_4_610955261.jp
g','http://www.carlays.com/filedata/picture/w380h380/CA_P1_5_1357663683.jpg'
,'http://www.carlays.com/filedata/picture/w380h380/CA_P1_6_1069878835.jpg','
http://www.carlays.com/filedata/picture/w380h380/CA_P1_7_1221341449.jpg','http://www.carlays.com/filedata/picture/w380h380/CA_P1_8_314781705.jpg');
//-->
</SCRIPT>
You can see an exemple at http://www.carlays.com/T1
The only probleme is that this code is call before all image in the web page
are loaded ! (try http://www.carlays.com/T1 with a low internet connection
to see an exemple) ...
that mean i need to wait that all the image in preoladimage function are
loaded to see the entire content of my webpage :(
How can i delay the call of the function preloadimage after the moment of
all the image in the web page are loaded ?
thank you by advance
stephane