October 15th, 2007

Build an image slideshow with PHP & JavaScript

There are numerous scripts out there that use PHP to scan the contents of a particular directory, and create a "gallery" of sorts from all of the images in the folder. There are also JavaScripts out there that allow you to rotate between images in a gallery without refreshing the page - thus creating a slideshow on the page. Well, without having to know too much PHP or JavaScript, you can now have both of those capabilities in one easy to configure PHP class!

This open source PHP class is used to present images in a slide show without reloading the current page. It automatically generates the necessary HTML and Javascript to display the listing of images, on the page. Best of all, the images are scanned from a list of files in a server side directory, which means that you can just upload a new image and it will be there!

You can also easily configure the delay time between switching the images on the page.

Leave a reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image