html::
<div> <div id =“ kppcl”> <div> <div> <div> <div> <a href ='{#url_reset(“ active/deption/delet”,“ id _ {#$ item.id#}”)#}'> <img src =“ href='{#url_reset("activity/detail","id_{#$item.id#}")#}'>{#$item.title#}</a></div> <div> <table cellspacing="0" cellpadding="0"> <tr> <th>時間:</th> <td>{#$item.start_date#}-{#$item.end_date#}</td> </tr> <tr> <th>地點:</th> <td>{#$item.area_name#}</td> </tr> </table> </div> </div> <div></div> </div> <div> <div> <div><a href ='{#url_reset(“活動/詳細信息”,“ id _” href='{#url_reset("activity/detail","id_{#$item.id#}")#}'>{#$item.title#}</a></div> <div> <table cellspacing="0" cellpadding="0"> <tr> <th>時間:</th> <td>{#$item.start_date#}-{#$item.end_date#}</td> </tr> <tr> <th>地點:</th> <td>{#$item.area_name#}</td> </tr> </table> </div> </div> <div></div> </div> <div> <div> <div><a href ='{#url_reset(“活動/詳細信息”,“ id _” href='{#url_reset("activity/detail","id_{#$item.id#}")#}'>{#$item.title#}</a></div> <div> <table cellspacing="0" cellpadding="0"> <tr> <th>時間:</th> <td>{#$item.start_date#}-{#$item.end_date#}</td> </tr> <tr> <th>地點:</th> <td>{#$item.area_name#}</td> </tr> </table> </div> </div> <div></div> </div> </div> <div id="page" style =“ display:none”> <div> <b> </b> <b> <b> 1 </b> <a href =“? p = 2”> 2 </a> <a href =“? p = 2”?JS代碼
<script src =“/js/blocksit.min.js”> </script> <script language =“ javascript” type =“ text/javascript”> $(window)> $(window).load(function(){$(#kppcl')。blockSit。blocksit(numofcol:numofcol:{numofcol:{numofcol:3,offsetx:offsetX:offsetx:offsety:5,oftey:5}); 5});});});});};}); var current_p = 0; //滾動$(window).scroll(function(){//當滾動到最底部以上100像素時,加載新內容if($(document).height().height() - $(this).scrolltop(this) - $(this).height(height().height()<100){ajax_ax_ax_ax_load_data()();}}}}}}});函數ajax_load_data(){var next_p = $('#page')。查找('。nextprev')。attr('rel'); if(next_p && next_p!= current_p){console.log('nextPage ='+next_p); current_p = next_p; $ .ajax({url:'{#url_reset(“ request/request/front/ajax”,“”,“”,“ php”)#}',data:{'act':'ajax_forum','ajax_forum','p':next_p},dataType:dataType:dataType:'json',json',type:'json',post'post'post'post'post'post'post'post'pofforeend:' show_loading_body();},成功:function(data){if(data.status!= undefined && data.status =='ok'){if(data.html) $('#page')。html(data.pages_str);}}}}); }} </script>