Funny! I am the only person who posted something today. ANyways guys, I am missing something very simple while trying to preload several images
in javascript:
var bigSample = new Array("samples/55.jpg","samples/54.jpg",
"samples/50.jpg","samples/51.jpg");
function preloading() {
for (var j=0; j<bigSample.length; j++) {
img[j] = new Image();
img[j].src = bigSample[j];
}
}
So after this function runs the rest of my script stops working, while I don't event know if preloading really worked.
Any advice would be so awesome.
Thanks to everyone again.
in javascript:
var bigSample = new Array("samples/55.jpg","samples/54.jpg",
"samples/50.jpg","samples/51.jpg");
function preloading() {
for (var j=0; j<bigSample.length; j++) {
img[j] = new Image();
img[j].src = bigSample[j];
}
}
So after this function runs the rest of my script stops working, while I don't event know if preloading really worked.
Any advice would be so awesome.
Thanks to everyone again.