html : :
<viv> <div id = "kppcl"> <viv> <viv> <viv> <a href = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}") HREF = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </viv> <viv> <table cellpacing = "0" cellpadding = "0"> <tr> <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </r> <tr> <th> HREF = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}")#}'> <img src = "{#$ item.logo#}"/> </a> </viv> <div> <a HREF = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </viv> <viv> <table cellpacing = "0" cellpadding = "0"> <tr> <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </r> <tr> <th> HREF = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}")#}'> <img src = "{#$ item.logo#}"/> </a> </viv> <div> <a HREF = '{#url_reset ("Activity/Detail" ، "id _ {#$ item.id#}")#}'> {#$ item.title#} </a> </viv> <viv> <table cellpacing = "0" cellpadding = "0"> <tr> <td> {#$ item.start_date#}-{#$ item.end_date#} </td> </r> <tr> <th> 地点 : </th> <td> {#$ item.area_name#} </td> </tr> </table> style = "display: none"> <viv> <b> 上一页 </b> <b> 1 </b> <a href = "؟ p = 2"> 2 </a> <a href = "؟JS 代码
<script src = "/js/blocksit.min.js"> </script> <script language = "javaScript" type = "text/javaScript"> $ (window) .load (function () {$ ('#kppcl'). blockit ({numofcol: 3 ، extretx: 5 ، 5}) ؛} ؛ var current_p = 0 ؛ // 滚动 $ (window) .scroll (function () {// 当滚动到最底部以上 100 像素时 , , 加载新内容 if ($ (document) .height () - $ (this) .scrolltop () - $ (this) .height () <100) {ajax_load_data () ؛}}) ؛ الدالة AJAX_LOAD_DATA () {var next_p = $ ('#page'). 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' show_loading_body () ؛ $ ('#page'). html (data.pages_str) ؛ }} </script>