HTML : :
<div> <div id = "kppcl"> <div> <div> <iv> <div> <a href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> <img src = "{#item.logo#}"/> </a> </iv> <viV> <a a href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </div> <div> <table cellspacing = "0" cellPadding = "0"> <tr> <th> 时间 : <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </tr> <tr> <th <th> 地点 : </th> <td> {#$ item.area_name#} </td> </tr> href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> <img src = "{#$ item.logo#}"/> </a> </div> <iv> <a href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </div> <div> <table cellspacing = "0" cellPadding = "0"> <tr> <th> 时间 : <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </tr> <tr> <th <th> 地点 : </th> <td> {#$ item.area_name#} </td> </tr> href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> <img src = "{#$ item.logo#}"/> </a> </div> <iv> <a href = '{#url_reset ("actividad/detalle", "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </div> <div> <table cellspacing = "0" cellPadding = "0"> <tr> <th> 时间 : <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </tr> <tr> <th> 地点 : </th> <td> {#$ item.area_name#} </td> </tr> </bable> </div> </iv> <iv> </div> </div> </divs> </div> " style = "Display: None"> <Div> <b> 上一页 </b> <b> 1 </b> <a href = "? P = 2"> 2 </a> <a href = "? P = 2" rel = "2"> 下一页 </a> </div> </div> </div>JS 代码
<script src = "/js/blocksit.min.js"> </script> <script language = "javascript" type = "text/javascript"> $ (window) .load (function () {$ ('#kppcl'). blocksit ({numOfCol: 3, offsetX: 5, offsetsety: 5});}); var curtion_p = 0; // 滚动 $ (Window) .scroll (function () {// 当滚动到最底部以上 100 像素时 , 加载新内容 加载新内容 if ($ (documento) .Height () - $ (this) .scrolltop () - $ (this) .Height () <100) {ajax_load_data ();}}); function AJAX_LOAD_DATA () {var next_p = $ ('#página'). find ('. nextPrev'). attr ('rel'); if (next_p && next_p! = current_p) {console.log ('nextPage ='+next_p); current_p = next_p; $ .AJAX ({URL: '{#url_reset ("request/front/ajax", "", "php")#}', data: {'act': 'ajax_forum', 'p': next_p}, dataType: 'json', type: 'post', befeforeSend: function () {show_loading_body ();},}, completa:}, completo:}, completa:}, completa:}, completa:}, completo: function (completa: show_loading_body ();}, éxito: function (data) {if (data.status! = Undefined && data.status == 'Ok') {if (data.html) {$ ('#kppcl'). Append (data.html). $ ('#Page'). Html (data.pages_str);}}}}); }} </script>