PDA

View Full Version : Easy 'Simply Gallery' question



Sn0wman
04-24-2012, 09:17 AM
Hi,

I'm using the Dynamic Drive Simple Gallery in my site, however this only rotates 4 images. How do I include 12 images?

I've tried the obvious, which is including more than 4 images in this section:

imagearray: [
["images/filename.jpg", "", "", "description"],
["images/filename.jpg", "", "", "description"],
["images/filename.jpg", "", "", "description"],
["images/filename.jpg", "", "", "description"],
["images/filename.jpg", "", "", "description"],
["images/filename.jpg", "", "", "description"],
],

This doesn't work. Is there something in the Javascript that need changing too?
Thanks in advance!

Ben

djr33
04-24-2012, 09:32 AM
Remove the final comma at the end of the last item in the array. ...description"], <- that comma

Sn0wman
04-24-2012, 09:40 AM
Thanks for your help! Will give this a try...

Sn0wman
04-24-2012, 01:03 PM
Worked. Cheers djr33 for the easy fix!