2010-09-13 78 views

回答

3

試試這個:

$(document).ready(function() { 
    var titles = ['Pentiction Summer Classic', 'Ryan Kesler', 'Trevor Linden']; 
    $('.slideshow').after('<div id="navigation"><div id="nav"></div></div>').cycle({ 
     fx:  'fade', 
     timeout: 5000, 
     pager: '#nav', 
     pagerAnchorBuilder: function (index) { 
      return '<a href="#">' + titles[index] + '</a>'; 
     } 
    }); 
}); 
相關問題