PDA

View Full Version : Simple Controls Gallery Disappearing when more than 4 images are added



Maslin
04-18-2012, 03:33 PM
1) Script Title: Simple Controls Gallery

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

3) Describe problem:

I have 12 images I want to display in the gallery, But am new to javascript and cant figure out how to make this work. It holds 4 images fine but any more than that and it disappears from my page. If anyone knows how to make the gallery capable of holding that many images can you please let me know how to do it?

Thanks

ddadmin
04-18-2012, 08:59 PM
Make sure when specifying your images inside the script, that all but the very last image array has a comma (,) at the very end:


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", "", "", ""], //<-- comma
["http://i31.tinypic.com/119w28m.jpg", "", "", ""] // <--no comma
],

If that's not the issue, please post a link to the page on your site that contains the problematic script so we can check it out.

Maslin
04-18-2012, 09:09 PM
Thank you, I will try it when I am back at work tomorrow.