<div id= "NewList" ></div>
<div class= "No_more" style= "Display:none;" ><p> No more! </p></div> <div class= "Loading loading2" style= "Display:none;" ><p> is trying to load ... </p</div>var pages = {: $ Totlepage:};if (pages==1) {jQuery ('. No_more '). Show (); var page = 2,bool = True,st = JQuery (document). Innerheight (); function Refresh () {if (!bool) {return;} bool = False;jquery ('. Loading2 '). Show (); JQuery ('. No_more '). Hide (); var data = {' page ': page}$.post (' url ', data, function (d) {if (d.length>0) {var html = '; for (var i = 0; i < d.length; i++) {html + = ' <li> '; HTML + = ' d[i].name '; html + = ' </li> ';}; $ (' #newlist '). Append (html);p age++;st = jQuery (document). Innerheight (); bool = True;jquery ('. Loading2 '). Hide (); JQuery ('. No_more '). Hide ();} Else{bool = False;jquery ('. No_more '). Show (), JQuery ('. Loading2 '). Hide ();}}, ' JSON ');} $ (window). Scroll (function () {if (Getscrolltop () + getclientheight () >= getscrollheight ()) {Refresh ();} }); Gets the current position of the scroll bar function getscrolltop () {var scrolltop = 0; if (document.documentelement && document.documentelemen T.scrolltop) {scrolltop = Document.documentElement.scrollTop;} else if (document.body) {scrolltop = Document.body.scrollTop;} return scrolltop; }//Gets the current range of height function getclientheight () {var clientheight = 0; if (document.body.clientHeight && DOCUMENT.DOCU Mentelement.clientheight) {clientheight = Math.min (Document.body.clientHeight, Document.documentElement.clientHeight); } else {clientheight = Math.max (Document.body.clientHeight, document.documentElement.clientHeight);} return ClientHeight; }//Get the document complete height function getscrollheight () {return Math.max (Document.body.scrollHeight, Document.documentElement.scrollHeight); }
Mobile Phone Page