<?php include('includes/randomImage.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Goldy's Place</title>
<link href="goldy.css" rel="stylesheet" type="text/css" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.goldy #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.goldy #sidebar1 { padding-top: 30px; }
.goldy #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="goldy">
<div id="container">
<div id="header">
<h1>Goldy's Place</h1>
<!-- end #header --></div>
<div id="sidebar1">
<h3>Goldy's Place</h3>
<p>For Goldfish and goldfish lovers!</p>
<p>We have the best selection of healthy and colorful goldfish in town!</p>
<!-- end #sidebar1 --></div>
<div id="mainContent">
<img src="<?php echo $randomImage; ?>" alt="random image" />
<br class="clearfloat" /></div>
<div id="footer">
<p><?php echo date('Y'); ?>© Goldy's place</p>
<!-- end #footer --></div>
<!-- end #container --></div>
<hr />
<div id="source"><?php show_source('goldy.php'); ?>
<hr />
<?php show_source('includes/randomImage.php'); ?></div>
</body>
</html>
<?php
/*INSTRUCTIONS
Move the desired images into an images folder.
Make sure that all of the images are optimized jpg images.
Replace the names of the fish files with the names of your image files.
Be VERY careful to retain the quotes and commas between each file name
Change the image folder path if necessary.
*/
$images = array('fish0','fish1','fish2', 'fish3', 'fish4', 'fish5', 'fish6');
$i =rand(0, count($images)-1); //do NOT change.
$randomImage = "images/{$images[$i]}.jpg"// change image folder path here if necessary
?>