Results 1 to 6 of 6

Thread: Simple Controls Gallery Tweaks

  1. #1
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery Tweaks

    1) Script Title: Simple Controls Gallery v1.3

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem:

    i. I want to show up two images at a time in the gallery. The default configuration show up only one photo at a time. How?

    ii. Can I set up the default photo which appears when the gallery loads? How?

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Hmm for 1) there's no easy way unfortunately apart from the obvious of combining two images into one using say Photoshop. For 2), are you asking how to have a different image other than the 1st show up when the page first loads?
    DD Admin

  3. #3
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    1) there's no easy way unfortunately apart from the obvious of combining two images into one using say Photoshop.
    That wouldn't make things work for me as I can't link those two images to different urls.

    Quote Originally Posted by ddadmin View Post
    2), are you asking how to have a different image other than the 1st show up when the page first loads?
    Yes, I did mean that. any clue how to do that?

  4. #4
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Quote Originally Posted by kunwarbs View Post

    Yes, I did mean that. any clue how to do that?
    There are a few ways to go about this. You can use the navigate() method and call it inside the oninit() event to go to the desired slide when the gallery has fully loaded. For example, the below goes to the 2nd slide automatically when the gallery loads:

    Code:
    var mygallery=new simpleGallery({
    wrapperid: "simplegallery", //ID of main gallery container,
    dimensions: [400, 265], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
    imagearray: [
    ["amster1.jpg", "http://en.wikipedia.org/wiki/Summer", "_new", ""],
    ["amster2.jpg", "http://en.wikipedia.org/wiki/Winter", "", ""],
    ["amster3.jpg", "", "", ""],
    ["amster4.jpg", "", "", ""]
    ],
    autoplay: [false, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
    persist: true,
    fadeduration: 1000, //transition duration (milliseconds)
    oninit:function(){ //event that fires when gallery has initialized/ ready to run
    },
    onslide:function(curslide, i){ //event that fires after each slide is shown
    mygallery.navigate(1)
    }
    })
    DD Admin

  5. #5
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Hmm for 1) there's no easy way unfortunately apart from the obvious of combining two images into one using say Photoshop.
    Is there a hard way to have two images show up at the same time and scroll through them? If so what is it?

  6. #6
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Well it's definitely possible, but basically you're looking at modifying a good chunk of the original code to accomplish it. This is a request that should be more realistically posted in the DD Paid Requests forum.
    DD Admin

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
  •