I have followed the tutorial for random image loading, bu cannot figure how to add a link to the image.
I tried adding links to each of the images - NO LUCK.
<?php
$file_array = array
(‘http://www.kirupa.com/me/footer/footer_home.gif’,
‘http://www.kirupa.com/me/footer/footer_mit.gif’,
‘http://www.kirupa.com/me/footer/footer_music.gif’,
‘http://www.kirupa.com/me/footer/footer_music2.gif’,
‘http://www.kirupa.com/me/footer/footer_tv.gif’,
‘http://www.kirupa.com/me/footer/footer_orange.gif’,
‘http://www.kirupa.com/me/footer/footer_game.gif’);
$total = count($file_array);
$random = (mt_rand()%$total);
$file = “$file_array[$random]”;
print("<img src=$file></a>");
?>
Thanks,
TD