I want to create a menu that sorts by days. Everything works except the pager won't output weekdays. My code is as follows:
var days = new Array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday" );
$('#main')
.before('<div id="nav">')
.cycle({
fx: 'toss',
timeout: 0,
pager: '#nav',
options: {
pagerAnchorBuilder: function(i,el) {
return '<a href="#">'+document.write(days[i+1])+'</a>';
}
}
});
It still defaults to numbers, however. Can someone point me in the right direction?