I really appreciate your help on this, John...unfortunately, the scripts don't really work...I get a blank box where the images should be :(
I've looked at the array that is output from my getpics.php script, and it is always the same, not random. The array IS getting built, but it's always in the same order, and no images are getting to the movie rotation script.
Here's my getpics.php file:
Code:<?php
Header("content-type: application/x-javascript");
function returnimages($dirname="./") {
$pattern="\.(jpg|jpeg|png|gif|bmp)$";
$files = array();
$curimage=0;
if($handle = opendir($dirname)) {
while(false !== ($file = readdir($handle))){
if(eregi($pattern, $file)){
$filedate=date ("M d, Y H:i:s", filemtime($file));
echo 'fadeimages[' . $curimage .']=["' . $file . '", ""];' . "\n";
$curimage++;
}
}
closedir($handle);
}
return($files);
}
echo "var fadeimages=new Array();" . "\n";
returnimages();
?>
I have double-checked the way everything is setup, and it seems right, so my thoughts are that the array is not being passed correctly to the rotation script. Any thoughts here?
