We’re currently working on a project using quite a lot of AJAX, which is great fun. We decided to go with the prototype and scriptaculous javascript framework for a number of reasons, but that did bring some difficulties.

One of the requirements of the project was a simple image gallery to show a number of images related to a particular record from the database. Obviously, since the site was predominantly AJAX’ed, we wanted a nice image gallery that would pup up on a mouseover from a dynamic URL that was called using AJAX.

However there were no simple “already built” javascript image galleries out there that use scriptaculous & prototype. Most of the more basic ones were developed on the MooTools framework and this caused a conflict with our other code.

So I set out to create a simple image gallery that we could use for the site.

I’m sure other people have had this problem, so I thought it would be a good idea to give it out to you all to play with yourself.

This isn’t the final version to be used as it’s been a while since I coded and I’m sure I haven’t done a very good job. But it works none the less and you can of course clean it yourself if you need to!

in terms of design I’ve also left it quite messy so that you can style it yourself. It’s very easy to template.

I don’t think I’ll bother boring you with the details of the script, I personally never read them and just download the code. Here’s the script to download – have fun!

Oh and here’s a demo example of it in action!

Dave from ISOTOPE Communications has improved the script – you can get his version here:

Be Sociable, Share!