Advanced Search

Results 1 to 3 of 3

Thread: Simple Controls Gallery: number of images

  1. #1
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery: number of images

    1) Script Title: Simple Controls Gallery v1.3

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.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.
    Last edited by tastegw; 06-19-2009 at 09:44 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    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:

    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", "", "", ""],
    		["http://i31.tinypic.com/119w28m.jpg", "", "", ""] //<--No comma following very last image!
    	],
    The trailing comma will trip up IE.
    DD Admin

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

    tastegw (06-20-2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thank you very much, i love this script and was hoping it was coded for just 4 pics.

    thanks again!

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
  •