View Full Version : Simple Controls Gallery: number of images

06-19-2009, 07:21 PM
1) Script Title: Simple Controls Gallery v1.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm

3) Describe problem: Can you have more than 4 images? if so, how?

edit: also, is there a way to make the rollover effect not work, in other words, not to give the end user the choice to look ahead or go back, play or pause.

Thanks in advance.

06-20-2009, 03:39 AM
Of course. The only thing to watch out for is to make sure there is no comma following the very last image definition, as highlighted in red below:

imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "http://en.wikipedia.org/wiki/Swimming_pool", "_new", "There's nothing like a nice swim in the Summer."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "", ""],
["http://i30.tinypic.com/531q3n.jpg", "", "", "Eat your fruits, it's good for you!"],
["http://i31.tinypic.com/119w28m.jpg", "", "", ""],
["http://i31.tinypic.com/119w28m.jpg", "", "", ""],
["http://i31.tinypic.com/119w28m.jpg", "", "", ""] //<--No comma following very last image!

The trailing comma will trip up IE.

06-20-2009, 07:26 AM
thank you very much, i love this script and was hoping it was coded for just 4 pics.

thanks again!