<?php include("adrotator.class.php"); $image_array=array("one.gif","two.gif","three.gif","four.gif","five.gif","six.gif","seven.gif"); $o = new AdRotator($image_array); $o->rotate(5); $img=$o->getImages(); for($i=0;$i<count($img);$i++){ ?> <img src="./images/<?=$img[$i]?>" style="border:thin solid #ffffff "><br> <? } ?>