PDA

View Full Version : Simple controls gallery v1.3 wont display more than 4 images



PHPJunior
02-17-2009, 12:15 PM
1) Script Title: Simple controls gallery v1.3

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

3) Describe problem: the gallery works great but as soon as i try to specify more images in the imagearray(more than 4) the gallery doesnt display on the page at all...please help

ddadmin
02-17-2009, 06:40 PM
Most likely there's an error in your syntax. Make sure, for example, that each image definition is followed by a comma (,), except the very last one. For example:


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

PHPJunior
02-17-2009, 08:56 PM
oh my word what a stupid mistake...lol...thanks so much!