There may be a more elegant way to do this, but you can use the onChange function to count the number of times you reach the first slide, and to clear the auto interval when that number gets to a certain point:
Code:
featuredcontentslider.init({
id: "slider1", //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.
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [true, 3000], //[true/false, 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)
if(typeof this.times!='number')this.times=0;
if(curindex==1) this.times++;
if(this.times>2) {clearInterval(window["fcsautorun"+this.id]);this.onChange=function(){return;};}
}
})
In the above, it will reach the first slide 3 times (including the very first time) then stop.
Bookmarks