How to display random images

Displaying random images

Last modified: August 26, 2009 - 23:08

This is made possible by a script found at www.alistapart.com called rotate.php.

Procedure:

  1. Create a directory under the web server's document root. I placed it under my theme's directory.
  2. Populate that directory with images.
  3. Download script and put it in a nice resting place.
  4. Edit script so it can find your image directory. To avoid editing you can just place the script in the same directory as the images.
  5. Under your theme's config, for custom logo, instead of a path to an image use the path to the script.
  6. You're done.
Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.