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: , , , , , , , , ,


10 Responses to “AJAX Header Rotator”

  • A. Oosterhoff Says:

    Hello,

    I’m interested in your hack of the AJAX header rotator. Especially the parameter to enter the image alt text.

    Can you provide us your hack or can you tell us where to get it from?

    Do we have to pay for your hack?

    Kind regards,

    Albert Oosterhoff
    Vision4You

  • TechKnow Says:

    Hi Albert,
    Nah, you don’t pay for the hack! I actually submitted it to the peeps at JoomlaWorks and they promised my patch would be included in the next version of the plugin. In the mean time, i’ll email you the fix!

  • Tyler Says:

    I’m using this tool as well and found your blog while searching for this very “tweak”. Would you mind emailing me the patch as well?

  • TechKnow Says:

    Hi Tyler, I’ll send the ‘tweak’ along to you as well.

    I have already emailed the authors of the AJAX Header Rotator module and sent them my fix. They did say they would include the patch in their next release, version 2.4.

  • Arnoud Says:

    Hello,

    I’m interested in your hack of the AJAX header rotator. I’m especially interested in the modification you made to fix the bug that the same image is always shown as start image.

    Can you provide me with the changes you made to the component?

    Thanks!

    Arnoud Quanjer
    http://www.wildlifephotography.nl

  • TechKnow Says:

    @Arnoud – I sent you an email with the patch… Enjoy.

  • Matti Says:

    Hi,

    I’m in trouble with AJAX header rotators alt-texts. It would nice if alt-texts could at least be removed. I’d be very grateful if I could also have that patch.

    Thank you beforehand!

    Sincerely yours,
    Matti H

  • Maxim Says:

    Hello everybody!

    I would be happy to get the fixes mentioned hear, especially one for the first image. I have this first random problem with all the other similar rotating modules (news,…) Would it be a similar fix for them?

    All the best!
    Maxim

  • Heidi Says:

    Hi,
    Would you be so kind as to send me the patch as well?

    Thanks,

    Heidi

  • Bulesz Says:

    Hí,

    Doues your patch cure the “Invalid argument” error in IE6? If does please email me your medicine! :)

    Cheerz,

    Bulesz

Leave a Reply