织梦首页列表页,ajax加载更多,瀑布流,首页多栏目切换(4)

相关案例演示
            
            arr.push('<span class="hidden-l" id="diggNum'+data[i].id+'">&nbsp;&nbsp;<a class=" text-bbb text-16"href="javascript:" onclick="javascript:postDigg(\'good\','+data[i].id+');"><span id="digg'+data[i].id+'" class="icon-heart2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;</a>'+data[i].goodpost+'</span>');
            arr.push('<a class="hidden-l"href="/plus/stow.php?aid='+data[i].id+'&type=sys"title="收藏" target="_blank">&nbsp;&nbsp;<span class="border-right"></span>&nbsp;&nbsp;&nbsp;<span class="icon-star2 cursor ib height22 width22"> &nbsp;&nbsp;&nbsp;&nbsp;</span></a>');
            arr.push('</span>');
            
            arr.push('</div></div>');}
        $('#'+toid).append(arr.join(''));
    
        loadConfig.load_num = rs.load_num;
        if(total<page*loadConfig.pagesize || page> loadConfig.load_num){
            //$('#'+toid).append('<p class="text-center margin-top"><a href="javascript:" class="button radius-rounded border-main width-20"id="'+toid+'data">没有了!</a></p>');
        $("#"+toid+"data").html('没有了!');
        }else{
        
            //$('#'+toid).append('<p class="text-center margin-top"><a href="javascript:" class="button radius-rounded border-main width-20"id="'+toid+'data">加载更多</a></p>');
        }
        
         eval(toid+"page  ++;"); 
    }
    
    add_winxin();
    add_share();
}
$("#alldata").click(function() {
loadMoreApply(0,1,'all');//all
});
$("#shdata").click(function() {
loadMoreApply(1,1,'sh');//商会
//$(this).parent('p').remove();
});
$(document).ready(function(){
add_winxin();
add_share();
});
 
function add_winxin(){
     $("#slideTxtBox-bd #list").hover(function() {
$(this).find("#shares").show();
},function(){
$(this).find("#shares").hide();
});
}
 
function add_share(){
$("#list .wx-textshare").hover(function() {
$(this).find("#dede_qrcode_frame").show();
},function(){
$(this).find("#dede_qrcode_frame").hide();
});
}
 
</script>
 
 
三,修改,plus/list.PHP 在require_once(dirname(__FILE__)."/../include/common.inc.php"); 
 
的下面增加一段
 
if(isset($_GET['ajax'])){
     $typeid = isset($_GET['typeid']) ? intval($_GET['typeid']): 0;//传递过来的分类ID
     $orderby = isset($_GET['orderby']) ? intval($_GET['orderby']): 1;

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。


来源:网友投稿 关注: 时间:2020-06-24 08:46
首先声明,只要是我们的vip会员所有源码均可以免费下载,不做任何限制(了解更多)
☉本站的源码不会像其它下载站一样植入大量的广告。为了更好的用户体验以后坚持不打水印
☉本站只提供精品织梦源码,源码在于可用,不在多!!希望在这里找到你合适的。
☉本站提供的整站织梦程序,均带数据及演示地址。可以在任一源码详情页查看演示地址
☉本站所有资源(包括源码、模板、素材、特效等)仅供学习与参考,请勿用于商业用途。
☉如有其他问题,请加网站客服QQ进行交流。
相关织梦教程
QQ在线咨询