Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Simple control gallery - adding more than 4 photos

  1. #1
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Simple control gallery - adding more than 4 photos

    Hello,

    Regarding the updated Simple Controls Gallery, I have been able to insert the scripts and css and everything is working properly (I love it when this happens)! The question that I have is how can I add additional image files? I have about 40 images that I want to add to this slideshow and I can not for the life of me figure out how to include additional photos and update the the numbers at the bottom of the navigation panel. Any help on this is greatly appreciated. I have used the fadein slideshow and that allowed me to add additional photos, don't know why I can't figure this out.

    Thanks.

    Jill
    Last edited by Snookerman; 05-31-2009 at 05:29 AM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    To and new photos, find on your page, something that should look like this:
    Code:
    var mygallery=new simpleGallery({
    	wrapperid: "simplegallery1", //ID of main gallery container,
    	dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
    	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", "", "", ""],
    	],
    	autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 500, //transition duration (milliseconds)
    	oninit:function(){ //event that fires when gallery has initialized/ ready to run
    		//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
    	},
    	onslide:function(curslide, i){ //event that fires after each slide is shown
    		//Keyword "this": references current gallery instance
    		//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
    		//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
    	}
    })
    (Highlighted)
    To add in a new one, add a comma, then brackets, then put in your image url, for example:

    BEFORE
    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", "", "", ""]
    	],
    AFTER
    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", "", "", ""],
    		["IMAGEURL"],
    Jeremy | jfein.net

  3. #3
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Niles,

    Thanks for the advice but when I add the image to the array, upload to server, the show completely disappears and the numbers do not increase. It still says 1/4. I am dumfounded... Shall I cut and paste code for review or you can check out the source at this link. [URL="http://www.i-pockets.com"] link: swsa

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    In the code, I only see 4 images... Mind updating it?
    Jeremy | jfein.net

  5. The Following User Says Thank You to Nile For This Useful Post:

    mini one (05-30-2009)

  6. #5
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Just uploaded the index page
    Thanks.

    mini one

  7. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't want the index page uploaded, I want this page uploaded:
    http://www.i-pockets.com/swsa/swsa_index.html

    Thanks!
    Jeremy | jfein.net

  8. #7
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    yes that is the one I updated. When I veiwed it in IE8 it does not show the new picture I added.

    mini

  9. #8
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Actually the gallery does not show up either! What a mess.

  10. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Works for me...
    Jeremy | jfein.net

  11. The Following User Says Thank You to Nile For This Useful Post:

    mini one (05-30-2009)

  12. #10
    Join Date
    May 2006
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hmm,

    I can see that it works so what am I doing that it does not display when I preview in IE. It does work in firefox. If there are only four pictures in IE it works just fine. It is when I add another image that it stops working in IE.

    You are a patient soul.

    Thanks. Mini one

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
  •