You're almost there. Add the highlighted:
Code:
<script type="text/javascript">
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: ["<", ">"], //labels for "prev" and "next" links. Set to "" to hide.
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [false, 3000],
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)
}
});
jQuery(function($){
var $tocs = $('#paginate-slider1 a').css({lineHeight: '165%'}), $next;
$tocs.last().wrap('<span></span>');
$tocs.eq(Math.ceil($tocs.size() / 2)).after(' ' + $('#paginate-slider1 span').html() + '<br>');
$next = $('#paginate-slider1 a').filter('.next');
$next.eq(0).replaceWith($next.eq(1));
$('#paginate-slider1 span').remove();
$('#paginate-slider1 a').filter('.next, .prev').css({position: 'relative', top: '0.5em'}).eq(0).css({left: '-2em'}).end().eq(1).css({left: '2em'});
});
</script>
By way of explanation, that property, even if the first value is false, is required. Otherwise the code throws an error. For some reason that error is too late to prevent the slider from working. But it comes before the added code for the pagination div, so that code is never run. Once the error is fixed, the pagination code does run and produces the desired result.
Bookmarks