Yes but, there are two levels of difficulty involved depending upon if you want more than one Featured Content Slider on a page with more than one set of customized links or not. For just one set of customized links used with one or more sliders on a page, edit contentslider.js here:
Code:
for (var i=0; i<slidernodes[sliderid].length; i++) //For each DIV within slider, generate a pagination link
pcontent+='<a href="#" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', '+i+'); return false\">'+(i+1)+'</a> '
pcontent+='<a href="#" style="font-weight: bold;" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', parseInt(this.getAttribute(\'rel\'))); return false\">Next</a>'
in the function called:
ContentSlider.buildpagination=function(sliderid)
What you can do is use an array of custom links (use as many thelinks[#]'s as you need):
Code:
var thelinks=[];
thelinks[0]='News';
thelinks[1]='Photos';
thelinks[2]='etc.';
Place the array at the top of the script before anything else. Then in the part we were looking at before, do this (change is in red, scroll the code section to see it):
Code:
for (var i=0; i<slidernodes[sliderid].length; i++) //For each DIV within slider, generate a pagination link
pcontent+='<a href="#" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', '+i+'); return false\">'+thelinks[i]+'</a> '
pcontent+='<a href="#" style="font-weight: bold;" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', parseInt(this.getAttribute(\'rel\'))); return false\">Next</a>'
The word 'Next' is hard coded (highlighted blue in the above). To change it, just change it.
If that is all you need, fine. If you need more than one set of custom links per page, let me know.
Bookmarks