PHP Classes

Ad Rotator: Random ad image list rotator

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-17 (9 years ago) RSS 2.0 feedStarStarStarStar 60%Total: 2,363 All time: 1,572 This week: 1,009Up
Version License Categories  
adrotator 1.0.0GNU General Publi...Algorithms
Description Author  

This is a simple class that can be used to create ads that rotate according to a random order.

The class takes an array of image files name strings as parameter but it could also be HTML tags for rich media ads.

Then it shuffles the numbers assigned to each ad array position in a way that the shuffled array does not contain repeated ad numbers.
It displays randomized images from a group of specified images, without repetition.

Finally the class can return a new array of ads sorted by order determined by the shuffled ad numbers array. The returned array can be used to display one or more ads in the same page.

Picture of Vedanta Barooah
Name: Vedanta Barooah <contact>
Classes: 11 packages by
Country: United States United States
Age: 35
All time rank: 476 in United States United States
Week rank: 277 Down34 in United States United States Down
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

  Files folder image Files  
File Role Description
Files folder imageold (2 files)
Plain text file adrotator.class.php Class Main Class File
Accessible without login Plain text file CHANGELOG Doc. Change Log
Accessible without login HTML file doc.html Doc. Documentation
Accessible without login Plain text file sample_ads.php Example Example (images with links)
Accessible without login Plain text file sample_rotate.php Example Example Usage
Accessible without login Plain text file sample_target.php Example Example with Targets

  Files folder image Files  /  old  
File Role Description
  Plain text file adrotator.class.php_1.0 Class Class Source
  Plain text file adrotator.class.php_1.1 Class Class Source

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,363All time:1,572
 This week:0This week:1,009Up
 User Ratings  
 All time