Login   Register  
PHP Classes
elePHPant
Icontem

Rotate Image: Display random images from a list in rotation

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-10-20 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,070 All time: 3,213 This week: 1,675Up
Version License Categories  
rotateimage 1.0GNU General Public Lice...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
Name: Brett Dutton <contact>
Classes: 4 packages by
Country: Australia Australia
Age: 46
All time rank: 84312 in Australia Australia
Week rank: 558 Up5 in Australia Australia Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
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

  Files folder image Files  /  classes  
File Role Description
  Plain text file Html.php Class Utility Class to assist with generating Html
  Plain text file RotateImage.php Class Main class

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file rotation_image_1.jpg Photo Demonstration Image
  Accessible without login Image file rotation_image_2.jpg Photo Demonstration Image
  Accessible without login Image file rotation_image_3.jpg Photo Demonstration Image
  Accessible without login Image file rotation_image_4.jpg Photo Demonstration Image
  Accessible without login Image file rotation_image_5.jpg Photo Demonstration Image

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,070All time:3,213
 This week:0This week:1,675Up