I am using Slides, a slideshow plugin for jQuery and am wondering how to implement custom pagination HTML. Currently, when there is only one image, it will disable pagination by default, which is what I want. But when there are multiple images, it will output the following HTML for pagination:
<ul class="pagination"></ul>
I want something more like
<div class="more-views">
<h2>More Views:</h2>
<ul class="pagination"></ul>
</div>
How can I change the way it auto generates the pagination?
I am using Slides, a slideshow plugin for jQuery and am wondering how to implement custom pagination HTML. Currently, when there is only one image, it will disable pagination by default, which is what I want. But when there are multiple images, it will output the following HTML for pagination:
<ul class="pagination"></ul>
I want something more like
<div class="more-views">
<h2>More Views:</h2>
<ul class="pagination"></ul>
</div>
How can I change the way it auto generates the pagination?
Share Improve this question asked Jan 15, 2012 at 8:37 johnjohn 3,1036 gold badges33 silver badges48 bronze badges2 Answers
Reset to default 3You can customise the pagination to an extent, see http://slidesjs./#examples
However if you wanted to edit the generated pagination you would have to go and edit the actual plugin source.
- Generate Pagination:
$('#slides').slides({generatePagination: true,
- Hide it
$('.pagination').hide();
- Use this function in your code:
function GoToPage(i){
$('.pagination li:eq('+ i +') a').click();
}