Results 1 to 4 of 4

Thread: Simple Controls Gallery

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery

    1) Script Title:Simple Controls Gallery


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

    3) Describe problem:
    I am using the script here for example

    http://www.alexis-html.com/ram/publications_bagage.html

    is it possible to set by default whenever you go to a specific work, you start seeing it from the 1st image (when i go to various works, i always found myself, where i was last)

    thank you

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try setting the persist state to false
    Code:
    persist: false,
    and see if that helps

  3. #3
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default

    on what line?

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    on line 34

    see the line below highlighted i red
    Code:
    <script type="text/javascript">
    var mygallery=new simpleGallery({
    wrapperid: "simplegallery", //ID of main gallery container,
    dimensions: [950, 540], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
    imagearray: [
    ["images/publications/baggage/cover01.jpg", "", "", ""],
    		["images/publications/baggage/spread01.jpg", "", "", ""],
    		["images/publications/baggage/spread02.jpg", "", "", ""],
    		["images/publications/baggage/spread03.jpg", "", "", ""],
    		["images/publications/baggage/spread04.jpg", "", "", ""],
    		["images/publications/baggage/spread05.jpg", "", "", ""],
    		["images/publications/baggage/spread06.jpg", "", "", ""],
    		["images/publications/baggage/spread07.jpg", "", "", ""],
    		["images/publications/baggage/spread08.jpg", "", "", ""],
    		["images/publications/baggage/spread09.jpg", "", "", ""],
    		["images/publications/baggage/spread10.jpg", "", "", ""],
    		["images/publications/baggage/spread11.jpg", "", "", ""]
    ],
    autoplay: [0], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
    persist: false,
    fadeduration: 1000, //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"))
    var sg = this;
    sg.setting.$gallerylayers.css({cursor: 'pointer'}).attr('title', 'Next').click(function(e){
    e.preventDefault();
    sg.navigate('next');
    });
    
    },
    onslide:function(curslide, i){ //event that fires after each slide is shown
    //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)
    }
    })
    
    </script>

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

    emanuelle (02-02-2011)

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
  •