サンプルコード ———————————————————————-
一番簡単なサンプルです。 ページの下までスクロールすると、自動的に次のページを読み込みます。
<html><head>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="jquery.autopager-1.0.0.min.js"></script>
<script>
$(function() {
$.autopager();
});
</script>
<style>
.content {
width: 600px;
height: 1200px;
border: 1px solid #CCC;
}
</style>
</head>
<body>
<div class="content">content</div>
<a href="#next" rel="next">Next</a>
</body>
– サンプルページ
参考にさせてもらったページ ———————————————————————-
– jQuery.autopager: Automatic paging plugin for jQuery
ありがとうございます!