Basically I wanted to create a multidim array for the mouseover buttons one on one off! But I am not quite sure that I have this correct? I need someone to pick it apart! Please!
Code:
var onImg=["homeon.gif","logoon.gif","designon.gif","abouton.gif","helpon.gif"];
var offImg=["homeoff.gif","logooff.gif","designoff.gif","aboutoff.gif","helpoff.gif"];
var ln=onImg.length;
var loadedImgs=[];
function slct(on,off){
this.on=on;
this.off=off;
}
for(i=0;i<ln;i++){
loadedImgs[i]=new Image();
loadedImgs[i]=new slct(onImg[i],offImg[i]);
}
I removed the .src at the end of the loop because it returned undefined it seems to work now but is it still preloading them? Thanx

Jon