Results 1 to 3 of 3

Thread: Simple Controls Gallery Disappearing when more than 4 images are added

  1. #1
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery Disappearing when more than 4 images are added

    1) Script Title: Simple Controls Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Make sure when specifying your images inside the script, that all but the very last image array has a comma (,) at the very end:

    Code:
    	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.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Maslin (04-18-2012)

  4. #3
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you, I will try it when I am back at work tomorrow.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •