Js implements drop-down refresh
<script type="text/javascript"> var p = 1; var c = 1; $(window).bind("scroll",function(){ if($(document).scrollTop() + $(window).height() > $(document).height() - 50 && c != 0)//Near the bottom 100px { $.ajax({ url:"more.html? p="+p, success:function(data) { alert(p); p++; $(".cbp_tmtimeline").append(data); } }); } }); </script>