PDA

View Full Version : Simple Controls Gallery v1.3 help



BMN
06-23-2010, 05:05 PM
1) Script Title: Simple Controls Gallery v1.3

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

3) Describe problem: on the examples on the simple control gallery page there are 4 images that get cycled through. For my purpose I want to add more than 4 images in the gallery, but when I add more than 4, the gallery on my page disappears.

Does anyone know what I need to change in the code so that I am able to show more than 4 images in the gallery?

azoomer
06-23-2010, 09:26 PM
Need to see your code to be sure but it could be a problem with a missing comma when you add more pics. Doing like this will probably work.


["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", "", "", ""], // <-- yes, this one
["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", "", "", ""] // only no comma after the last picture
remember the red comma when you extend the array

BMN
06-23-2010, 09:53 PM
OH WOW! I can't believe I missed that. Thank you very much.

problem has been fixed