2010-09-13 62 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>'; 
     } 
    }); 
});