Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_rotate.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-11-24 04:58
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>
<?
}
?>