Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_target.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_target.php  >  Download  
File: sample_target.php
Role: Example script
Content type: text/plain
Description: Example with Targets
Class: Ad Rotator
Random ad image list rotator
Author: By
Last change:
Date: 2006-05-17 09:21
Size: 508 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");
$links_array=array("http://one.com","http://two.com","http://three.com","http://four.com","http://five.com","http://six.com","http://seven.com");
$o = new AdRotator($image_array,$links_array);
$o->rotate(5);
/* show vertical ads */
print $o->showAds("VERTICAL",NULL,"_blank");
echo 
"<hr>\n";
/* show horizontal ads */
print $o->showAds(NULL,NULL,"_parent");
?>