PHP Classes

File: sample_rotate.php

Recommend this page to a friend!
  Classes of Vedanta Barooah   Ad Rotator   sample_rotate.php   Download  
File: sample_rotate.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: Ad Rotator
Random ad image list rotator
Author: By
Last change:
Date: 19 years ago
Size: 333 bytes
 

Contents

Class file image Download
<?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>
<?
}
?>