sdenn
08-24-2013, 01:30 AM
1) Script Title: Simple Controls Gallery
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem: When the gallery is displayed, the initial slide is set to the first. However, in my case, I have a need to *sometimes* start the gallery on the last slide, not always the first. Is there a way to launch the slideshow to have a variable to start it on first or last? I don't want to change the order of the slides, just begin the slideshow on the last slide
I'm not all that familiar with Javascript, but the code has the following...here's the snipit...
dfd.done(function(){ //execute when all images have loaded
setting.$loadinggif.remove()
setting.$wrapperdiv.bind('mouseenter', function(){slideshow.showhidenavpanel('show')})
setting.$wrapperdiv.bind('mouseleave', function(){slideshow.showhidenavpanel('hide')})
slideshow.showslide(setting.curimage) //show initial slide
setting.oninit.call(slideshow) //trigger oninit() event
So with slideshow.showslide(setting.curimage), I'd like to be able to display the last slide in the array as the initial. Can anyone suggest an easy way on how to do this? Thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem: When the gallery is displayed, the initial slide is set to the first. However, in my case, I have a need to *sometimes* start the gallery on the last slide, not always the first. Is there a way to launch the slideshow to have a variable to start it on first or last? I don't want to change the order of the slides, just begin the slideshow on the last slide
I'm not all that familiar with Javascript, but the code has the following...here's the snipit...
dfd.done(function(){ //execute when all images have loaded
setting.$loadinggif.remove()
setting.$wrapperdiv.bind('mouseenter', function(){slideshow.showhidenavpanel('show')})
setting.$wrapperdiv.bind('mouseleave', function(){slideshow.showhidenavpanel('hide')})
slideshow.showslide(setting.curimage) //show initial slide
setting.oninit.call(slideshow) //trigger oninit() event
So with slideshow.showslide(setting.curimage), I'd like to be able to display the last slide in the array as the initial. Can anyone suggest an easy way on how to do this? Thanks!