So you already know how to retrieve a URL parameter (this can be easily done server side, fairly easily with javascript alone) if you already know how to do that and just want somewhere to plug it into the script, we could add an option to the on page var mygallery=new fadeSlideShow init code:
Code:
startindex: 4, //Zero based starting index
Then, using a text only editor like NotePad, near the beginning of the fadesliseshow.js script, change the highlighted line as shown:
Code:
. . . peed: 200 //speed of description panel animation (in millisec)
}
//No need to edit beyond here...
jQuery.noConflict()
function fadeSlideShow(settingarg){
this.setting=settingarg
settingarg=null
var setting=this.setting
setting.fadeduration=setting.fadeduration? parseInt(setting.fadeduration) : 500
setting.curimage=(setting.persist)? fadeSlideShow.routines.getCookie("gallery-"+setting.wrapperid) : (setting.startindex || 0)
setting.curimage=setting.curimage || 0 //account for curimage being null if cookie is empty
setting.currentstep=0 //keep track of # of slides slideshow has gone through (applicable in displaymode='auto' only)
setting.totalsteps=setting.imagearray.length*( . . .
If you need help sending/retrieving the URL parameter, or have any other questions, just let me know.
Bookmarks