daveigh
Programmer
- Oct 9, 2003
- 105
hi guys! It seems that my preloader is not working. What im doing is:
1) preview an item (the preloader should run on load of this page)
here is the script im using:
function preloader(imahe1,imahe2,imahe3,imahe4,imahe5)
{
var i = 0;
imageObj = new Image();
pics = new Array();
pics[0]=' + imahe1;
pics[1]=' + imahe2;
pics[2]=' + imahe3;
pics[3]=' + imahe4;
pics[4]=' + imahe5;
for(i=0; i<=3; i++)
{
alert(pics);
imageObj.src=pics;
}
}
2) see the thumbnails of the item at the bottom of the page
3) when i click the thumnail, a larger image should appear. these large image is the one ive preloaded previously. the page loads fine, but they dont show up! the image exists, i tried copy/pasting the url of the image and it shows! I have to right-click then select "Show Picture" for the image to load...any insights there?
_______________CRYOcoustic_____________
1) preview an item (the preloader should run on load of this page)
here is the script im using:
function preloader(imahe1,imahe2,imahe3,imahe4,imahe5)
{
var i = 0;
imageObj = new Image();
pics = new Array();
pics[0]=' + imahe1;
pics[1]=' + imahe2;
pics[2]=' + imahe3;
pics[3]=' + imahe4;
pics[4]=' + imahe5;
for(i=0; i<=3; i++)
{
alert(pics);
imageObj.src=pics;
}
}
2) see the thumbnails of the item at the bottom of the page
3) when i click the thumnail, a larger image should appear. these large image is the one ive preloaded previously. the page loads fine, but they dont show up! the image exists, i tried copy/pasting the url of the image and it shows! I have to right-click then select "Show Picture" for the image to load...any insights there?
_______________CRYOcoustic_____________