I want to add external link to one of the navigation buttons with jquery cycle. Lets assume there are 5 buttons and I would like to make one of them external link. Any tips?
$('#content').cycle({
fx: 'scrollUp',
speed: 'slow',
timeout: 0,
pager: '#nav',
pagerAnchorBuilder: function(idx, slide) {
// return sel string for existing anchor
return '#nav li:eq(' + (idx) + ') a';
}
});
and here's what I found, please see comment
$('#content').click(function() {
$('#nav li:eq(2) a').trigger('click');
**return '<a href="' + el.src + '">' + (i+1) + '</a>';** // this should be it but how do I implement so both triggers work accordingly?
});
and html outline:
<div class="menu">
<ul id="nav">
<li class="home"><a href="#home" title="home" >Home</a></li>
<li class="about"><a href="http://www.dot.net/Resume.pdf" title="about" class="external">About</a></li>
<li class="networks"><a href="#networks" title="networks">Networks</a></li>
<li class="last contact"><a href="#contact" title="contact">Contact</a></li>
</ul>
<br class="spacer"/>
</div>
if (which == "resume"){
$('#nav li:eq(2) a').trigger('click');
return '<a href="' + el.src + '" >' + (i+1) + '</a>';
that was my solution for now.