Hi John,
Thanks for the help but I can't get that to work.
here is my original code :
Code:
featuredcontentglider.init({
gliderid: "products", //ID of main glider container
contentclass: "glidecontent", //Shared CSS class name of each glider content
togglerids: ["p-select", "p-select2", "p-select3"], //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: "rightleft", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
autorotate: false, //Auto rotate contents (true/false)?
autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
Tried this :
Code:
var myslider = {
id: "products", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "#increment", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [false, 3000], //[true/false, pausetime]
enablepersist: false, //true/false - defaults to false
random: false, //true/false - defaults to false (requires autorotate be set to true with a pausetime)
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
this.nav.prev.style.visibility = curindex === 1? 'hidden' : '';
this.nav.next.style.visibility = curindex === this.contentdivs.length? 'hidden' : '';
}
};
featuredcontentslider.init(myslider);
(function(s){
var nav = {}, pdiv = document.getElementById('paginate-' + s.id).getElementsByTagName('a');
for(var i = 0; i < pdiv.length; ++i){
if(/prev/.test(pdiv[i].className))
nav.prev = pdiv[i];
else if(/next/.test(pdiv[i].className))
nav.next = pdiv[i];
}
s.nav = nav;
})(myslider);
No Dice.
Am I missing something ? Do I need to do something in the HTML too ?
Slider just doesn't work at all with this.
Bookmarks