OK, in the featuredcontentglider.js file, add the highlighted:
Code:
. . . oc.removeClass('selected')
$selectedlink.addClass('selected')
config.$togglerdiv.attr('lastselected', selected+'pg')
}
if(config.onglide){
config.onglide.call(config, selected);
}
},
getremotecontent:function($, config){
config.$glider.html(this.ajaxloadingmsg)
$.ajax({
url: config.re . . .
Then do your on page init something like so (important parts highlighted):
Code:
featuredcontentglider.init({
gliderid: "canadaprovinces", //ID of main glider container
contentclass: "glidecontent", //Shared CSS class name of each glider content
togglerid: "p-select", //ID of toggler container
remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
selected: 0, //Default selected content index (0=1st)
persiststate: false, //Remember last content shown within browser session (true/false)?
speed: 0, //Glide animation duration (in milliseconds)
direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
autorotate: true, //Auto rotate contents (true/false)?
autorotateconfig: [5000, 2], //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
onglide: function(selected){
this.speed = 500;
this.onglide = null;
}
})
Be sure not to miss the added comma (red) after the autorotateconfig entry.
With the speed set to 0, that will be the initial speed. In the onglide function we reset the speed to 500 for all subsequent glide operations.
Bookmarks