hzellers
this is possible if you load the images that you wish to work with into an array in one of the php files that are included in the basic store. Something in func.php would do the job.
Then get that script to select one at random.
The head.tpl would then just call the variable name as the img source and hey presto.
Something along the lines of:
Code:
$totalImages = array ("image1.gif","image2.gif","image3.gif");
$imagesCount = count ($totalImages );
srand ((double) microtime () * 1000000);
$number = rand(0,$imagesCount);
$randomImage = $totalImages [$number];
$smarty->assign("headimage",$randomImage);
Then in head.tpl replace
Code:
[img]{$ImagesDir}/logo.gif[/img]
with:
Code:
[img]{$ImagesDir}/{$headimage}[/img]
Please note that I haven't tested this but there is no reason why it shouldn't work. Just add your images to the array and away you go.
hth