iPage sound like “iPad” , but it’s pretty too. If you want a plugin jquery to implement paging you list as “ul” or “ol” or “div” with child, you can use this plugin. It’s very easy and smart to use with many options to help you customize,
- Options with default value
- pagenumber : 1 // This value is page will display when in initialize
- children : ‘li’ // Children of root element you want paging
- numPerPage: 5 // Number of item display a page
- numButton : 9 // Number button of navigation to change page display
- How to use First insert javascript and stylesheet(css) in your page
- Note stylesheet file have a important class you must include, you can customize style navigation in here
<script type="text/javascript" src="js/jquery.ipage.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/ipage.css" />
HTLM formart
<ul class="gifts">
<li class="gift">
<img class="img-gift" src="images/gift1.png" />
<span>Gift Number 1</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift2.png" />
<span>Gift Number 2</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift3.png" />
<span>Gift Number 3</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift4.png" />
<span>Gift Number 4</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift5.png" />
<span>Gift Number 5</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift6.png" />
<span>Gift Number 6</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift7.png" />
<span>Gift Number 7</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift8.png" />
<span>Gift Number 8</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift9.png" />
<span>Gift Number 9</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift10.png" />
<span>Gift Number 10</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift11.png" />
<span>Gift Number 11</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift12.png" />
<span>Gift Number 12</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift13.png" />
<span>Gift Number 13</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift14.png" />
<span>Gift Number 14</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift15.png" />
<span>Gift Number 15</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift16.png" />
<span>Gift Number 16</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift17.png" />
<span>Gift Number 17</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift18.png" />
<span>Gift Number 18</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift19.png" />
<span>Gift Number 19</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift20.png" />
<span>Gift Number 20</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift21.png" />
<span>Gift Number 21</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift22.png" />
<span>Gift Number 22</span>
</li>
<li class="gift">
<img class="img-gift" src="images/gift23.png" />
<span>Gift Number 23</span>
</li>
</ul>
And start action now
$(document).ready(function(){
$("ul.gifts").ipage({
pagenumber: 1,
buttonClickCallback: PageGiftClick,
root : 'ul.gifts',
numPerPage : 5 ,
children: 'li.gift',
numButton: 5,
});
});