如何在jquery cycle插件中更改寻呼机文本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在jquery cycle插件中更改寻呼机文本相关的知识,希望对你有一定的参考价值。

Change the text of the jquery cycle pager element. By default is is 1, 2, 3 etc but you can change this to text via a variable
  1. $(document).ready(function () {
  2. var titles = ['Pentiction Summer Classic', 'Ryan Kesler', 'Trevor Linden'];
  3. $('.slideshow').cycle({
  4. fx: 'fade',
  5. timeout: 5000,
  6. pager: '#nav',
  7. pagerAnchorBuilder: function (index) {
  8. return '<a href="#">' + titles[index] + '</a>';
  9. }
  10. });
  11. });

以上是关于如何在jquery cycle插件中更改寻呼机文本的主要内容,如果未能解决你的问题,请参考以下文章