This little bit of php will give you a random image.
PHP
<?php
$links=array('wine.jpg','whisky.jpg','beer.jpg');
$rand=rand(0,2);
$image=$links[$rand];
echo '
<p><img src="'.$image.'" alt="'.substr($image,-4).'" /></p>';
?>
Here's the image...
Refresh the page and you'll see that it's pretty random.
Here's one way to do it with javascript.
it is good
Wise words, sir!
Thank you so much!
The code is wrong. Is work with that:
<img src="'.$image.'" alt="'.substr($image, 0, -4).'" />
it is good