123456789101112131415161718192021222324 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <link rel="Stylesheet" href="Pag.css">
- </head>
- <body>
- </body>
- <script src="http://www.1473.cn/uform.js"></script>
- <script src="Pag.js"></script>
- <script type="text/javascript">
- window.onload = function () {
- U.Control.Pag.create(10);
- //追加到那个元素下 一共有多少条数据 默认启始页位置 一页多少条数据 {"fun": 回调函数, 回调函数中第几个参数表示页数:} 返回函数 return {"pre": 上一页按钮的元素,"next":下一页,"frit": 首页,"last":尾页, "input":[输入框,跳转按钮],"page":[添加页数的位置,页数的样式名,当前页数的样式名]}
- U.PG.PPage($("body")[0], 20, 1, 4, { "fun": [[function () { }, ([1])]], "page": [0] }, function () {
- // return { "pre": $("#U_C_Pag_I_Pre")[0], "next": $("#U_C_Pag_I_Next")[0], "frit": $("#U_C_Pag_I_Frit")[0], "last": $("#U_C_Pag_I_Last")[0], "input": [$("#U_C_Pag_Jump_Inp")[0], $("#U_C_Pag_I_Jump")[0]], "page": $("#U_C_Pag_I_List_UL")[0] };
- return { "pre": null, "next": $("#U_C_pag_next_btn")[0], "frit": null, "last": null, "input": [$("#U_C_Pag_II_input")[0], $("#U_C_Pag_II_Slider_btn")[0]], "page": [$("#U_C_PAG_UL")[0], "U_C_one_page", "U_C_Pag_II_active"] };
- });
- }
- </script>
- </html>
|