AJAX Header Rotator

The Joomla! installation comes with a neat module called Random Image. The Random Image module accepts an image directory path, and image type and will randomly and dynamically displays one of the images found in the image directory path for every visit.

But if you want to dynamically display images on you Joomla! site, I recommend you take a look at the AJAX Header Rotator module made available by JoomlaWorks. AJAX Header Rotator also requires a image directory path but instead of displaying a single random image, this module will load all the images and display one at a time. The AJAX Header Rotator rotates through images randomly or sequentially. Behind the scenes, AJAX Header Rotator uses jQuery to rotate through the image set.

A note of warning, I had to hack the AJAX Header Rotator module because I felt it lacked a few key parameters. For one, AJAX Header Rotator loads all the images in the image folder and I had felt there should be max number of files that it loads and rotates through on each user visit. I also added a parameter to enter the image alt text. And finally, the module code always displayed the same first image so I had to shuffle the images array to display a distinct image as the initial image.

Technorati Tags: , , , , , , , , ,