JQuery Pagination paging plug-in, jquerypagination
JQuery Pagination paging plug-in
Download DEMO
1. Introduction
This jQuery plug-in is an Ajax paging plug-in that can be loaded at one time. Therefore, there is no need to change the page type and delay.
2. Usage
1. Introduce the following js and css files
1 <link rel="stylesheet" href="pagination.css">2 <script type="text/javascript" src="jquery.min.js"></script>3 <script type="text/javascript" src="jquery.pagination.js"></script>
2. Add the following js Code to the head Tag:
1 $(".pagination").pagination(100, {2 callback: pageselectCallback,3 num_edge_entries: 1,4 });5 });
3. Parameters
Parameter Name |
Description |
Parameter Value |
Callback |
Click the callback function of the paging button. |
Function () {return false ;} |
Current_page |
Page number selected during initialization |
0 by default indicates 1st pages |
Items_per_page |
Number of records per page |
The default value is 10. |
Link_to |
Paging Link |
The default value is "#". |
Num_display_entries |
Maximum number of pages displayed |
The default value is 11. |
Next_text |
Text displayed on the "Next" button |
The default value is "Next" |
Prev_text |
Text displayed by the button on the previous page |
The default value is "Previous" |
Next_show_always |
The next page is displayed only when the page number can be added. |
The default value is "true ". |
Prev_show_always |
The previous page button is displayed only when you can navigate to the previous page. |
The default value is "true ". |
Num_edge_entries |
Number of entries on both sides of the page |
The default value is 0. |
Ellipse_text |
The identifier string from the current page segment to the home page or the last page. |
The default value is "..." |