You can get an instance of FCG to go to a particular slide from outside the pagination links by making a small adjustment to your initialization code. Specifically, first cache the settings for each FCG inside a variable before applying it to the init() function, for example:
Code:
var config1={
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: 500, //Glide animation duration (in milliseconds)
direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
autorotate: true, //Auto rotate contents (true/false)?
autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
}
featuredcontentglider.init(config1)
config1 should be an arbitrary but unique variable name for each instance of FCG on your page. With that change you can now go to a specific page within a FCG dynamically by calling the function:
Code:
featuredcontentglider.glide(config1, 0)
where glider1 is the variable containing your FCG's settings, and 0=1st page, 1=2nd page to show etc. In your case, you'll call the above line inside your code that toggles the FCG most likely.
Bookmarks