hide link "next" at last slide, "previous" at first slide....
hi,
for a manual slide show, am trying to hide "next" link when it reaches last slide...
$(document).ready(function() {
$('#slideshow').before('<div id="nav">').cycle({
fx: 'scrollHorz',
timeout: 0,
next: '#next',
prev: '#prev',
pager: '#nav',
end: function() { // both following lines are ignored...
console.log('end');
$('a#next').css('visibility', 'hidden');
}
});
});
and how would I hide "previous" link when at first slide?
thank you...