hello all, i’ve got a photo gallery that works but seems to load the pics slowly and in safari it’s not even loading the “big” pic when you roll over its thumbnail – you have to rollover, rollout, then back on to get it display ?
so i’m trying to preload the large images by creating an array to store them in. this is how i’m creating the array:
[CODE]
$bigPhoto=array(“images/gallery/bigs_$req_gall_num/1.jpg”);
for ($b=2;$b<($tot_pics+1);$b++){
array_push($bigPhoto, “images/gallery/bigs_$req_gall_num/”.$b.”.jpg”);
}
i’m printing the line below but instead of printing “$bigPhoto($i)” it just prints “Array($i)” and i don’t know why. if print the array using print_r i can see all the correct images and indices but a regular print isn’t doing jack.
[CODE]
onMouseOver=”document.getElementById(‘big_pics’).src=eval($bigPhoto($i)));”
i’m sure i’m over looking something elementary. pretty sure there’s probably a better way to do all this period but i haven’t been able to find any pure PHP preloader tuts ๐ฎ
thanks!