PHP Classes

Rotate Image: Display random images from a list in rotation

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,084 All time: 3,446 This week: 131Up
Version License Categories
rotateimage 1.0GNU General Publi...HTML, Graphics, Content management
Description 

Author

This class can be used to display random images in an HTML page from a list.

The class gets the list of image files present in the given directory with a name that matches a pattern defined by a regular expression.

The class then picks a random image to display and generates HTML tags to display that image.

The generated HTML tags contain Javascript that makes the next image in the list be displayed when the user clicks on the current image.

Picture of Brett Dutton
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (8)  
File Role Description
Files folder imageclasses (2 files)
Files folder imageimages (5 files)
Accessible without login Plain text file rotexample.php Example Example use of this class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,084
This week:0
All time:3,446
This week:131Up