篮球直播-NBA直播
2月24日鹈鹕vs热火视频直播

喜欢本页?点击右边的按钮,分享给您的好友吧-_-
").appendTo($("#comment_info_bottom")); if(isAdd==0){ //loucent = ['', '沙发', '板凳', '地板']; //good begin if('' != data.good){ var goodarr = []; goodarr.push("
最热评论
"); for(var i in data.good){ var g = data.good[i]; var greplies=g.replys||[]; if(i != data.good.length-1){ goodarr.push("
  • "); } else{ goodarr.push("
  • "); } if(g.avater_url == '' || g['avatar_url'] == ''){ goodarr.push("
    "); } else{ goodarr.push("
    "); } goodarr.push("
    "+g.content+"
    "); if (greplies != '') { goodarr.push("
    "); var lg=greplies.length; $.each(greplies, function(i,r){ if(i==lg-1){ goodarr.push("
    "); } else{ goodarr.push("
    "); } goodarr.push("
    "+r.content+"
    "); goodarr.push("
    "); }); goodarr.push("
    "); } else { goodarr.push(""); } goodarr.push("
  • "); } arr.push(goodarr.join("")) } //good end arr.push('
    最新评论刷新
    '); } for(var i =0, l = data.data.list.length; i < l; i++) { var c = data.data.list[i],replies = c.replys||[]; //nowloucent = ((data.curPage-1)*data.perPage)+i+1; louceng = c.lou; if (c.avatar_url == '') { if(i!=l-1){ arr.push("
  • "); } else{ arr.push("
  • "); } arr.push("
    "); } else { arr.push("
  • "); } arr.push("
    "+c.content+"
    "+c.time+"("+louceng+")回复
    "); if (replies != '') { arr.push("
    "); //arr.push("
  • 副楼
  • "); var lg=replies.length; $.each(replies, function(i,r){ arr.push("
    "); arr.push("
    "); }); arr.push("
    "); } else { arr.push(""); } arr.push(""); } if(isAdd==0){ $("#comment_list").html(arr.join("")); } else{ $("#comment_list").append(arr.join("")); } if(fromLoadmore==0){ if(Maoid != 0){ if(beginMao==1){ var cTop = $(".jump_to").offset().top; } else{ var cTop = $("#comment_li_"+Maoid).offset().top; } window.scrollTo(0,cTop-176); } $("#comment_li_"+Maoid).animate({"backgroundColor":"#faa"},500,function(){ $("#comment_li_"+Maoid).animate({"backgroundColor":"#fff"},500); }); } beginMao=0; isAdd=0; fromLoadmore=0; pages = Math.ceil((data.data.totalCount)/data.perPage); $comment.find(".endpage").css("display",(pages>data.curPage)?"":"none"); //$comment.find(".prevPage").css("display",(data.curPage)>1?"":"none"); $comment.find(".nextPage").click(function() { isAdd=1; fromLoadmore=1; setTimeout(function() { get_posts(data.item_sid,80,data.curPage+1); }, 500); }); //$comment.find(".prevPage").click(function() { //get_posts(data.item_sid,80,data.curPage-1); //}); } } else { alert(data.msg); } afterPost = 0; } $(function(){ //监听用户登录成功 $(document.body).bind("userlogined.zhiboba",function(e,data){ //$("#comment_content").removeAttr("disabled").val(""); $(".lefthello").hide(); $("#comment_submit").show(); //$("#curUser").html("当前用户:"+data.username+""); $(".curUser").html("欢迎您,"+data.username); $("#comment_anonymous").hide(); }); //监听用户注销 $(document.body).bind("userlogout.zhiboba",function(e,data){ //$("#comment_content").attr("disabled","disabled").val("亲~~登录后就可发表评论哦"); $(".lefthello").show(); $("#comment_submit").hide(); $(".curUser").html(""); $("#comment_anonymous").show(); }); $comment = $('#comment'); $comments = $("#comment_list"); get_posts(commentSid, 80, 1); var bGuest = parseInt("1"); if (bGuest) { ; } else { $(document.body).trigger("userlogined.zhiboba",{username:"",id:""}); } //楼层回复 $comments.delegate(".cc","mouseover mouseout",function(e){ $(this)[(e.type=="mouseover"?"addClass":"removeClass")]("commenthover"); }); var isopen=0,issame,therid; $comments.delegate(".isreplyhox_show","click",function(e){ var $this= $(this), cid=$this.attr("data-id"); var rreply = $this.parents('.replyborder').next('.reply_box'); var creply = $this.parents('.comment_li_cont').next('.reply_box'); var rid=$this.attr("data-rid"); var commentarr="
    "; if(bGuest){ commentarr += "登录 或 注册 后发表评论,就可以设置您的用户名和头像了"; } else{ commentarr += "欢迎您,"+''+""; } commentarr += "
    "; $(".reply_box").hide(); if(issame!=cid){ issame=cid; $(".reply_box").hide(); if(typeof(rid)!='undefined'){ //$("#reply_box_"+rid+" .reply_cont").html(commentarr); //$("#reply_box_"+rid).show(); rreply.find('.reply_cont').html(commentarr); rreply.show(); } else{ //$("#reply_box_"+cid+" .reply_cont").html(commentarr); //$("#reply_box_"+cid).show(); creply.find('.reply_cont').html(commentarr); creply.show(); } isopen=1; } else{ $(".reply_box").hide(); if(isopen==0 || therid!=rid){ therid=rid; if(typeof(rid)!='undefined'){ //$("#reply_box_"+rid+" .reply_cont").html(commentarr); //$("#reply_box_"+rid).show(); rreply.find('.reply_cont').html(commentarr); rreply.show(); } else{ //$("#reply_box_"+cid+" .reply_cont").html(commentarr); //$("#reply_box_"+cid).show(); creply.find('.reply_cont').html(commentarr); creply.show(); } isopen=1; } else{ if(typeof(rid)!='undefined'){ //$("#reply_box_"+rid).hide(); rreply.hide(); } else{ //$("#reply_box_"+cid).hide(); creply.hide(); } isopen=0; } } }); $comments.delegate(".btnreplycomment","click",function(e){ var cid=$(this).attr("data-id"); Maoid=cid; var $tareply = $("#comment_content_"+cid),cc=$tareply.val(),comment_content= cc.replace(/^[^\:]+\:/,""); if(validComment(comment_content)){ setTimeout(function(){ $.getScript('http://active.3b2o.com/post/create?comment_content='+encodeURIComponent(cc)+'&sid='+commentSid+'&post='+cid+'&jsonp=create_post_ret'); },50); } }); //顶 踩 $comments.delegate(".like, .unlike","click",function(){ var $this = $(this), num=parseInt($this.html().match(/(\d+)/)[1]),post = $this.attr("data-id"),fnname = "fn"+(new Date()).getTime(), isLike = $this.is(".like"); window[fnname] = function(data){ if(data.status!=0){ alert(data.msg); }else{ $this.html((isLike?"↑顶↑":"↓拍↓")+"【"+(num+1)+"次】"); $this.animate({"backgroundColor":"#faa"},500,function(){ if($this.parents("div").hasClass("r_info")==true){ $this.animate({"backgroundColor":"#F0F0F0"},500); } else{ $this.animate({"backgroundColor":"#fff"},500); } }); } window[fnname]=null; } setTimeout(function(){ $.getScript('http://active.3b2o.com/post/'+(isLike?"good":"bad")+'?post='+post+'&item='+commentSid+'&jsonp='+fnname); },50); }); }); $(window).scroll(function(){ var nowTop = $(window).scrollTop(); var cTop = $("#comment_list").offset().top; if(nowTop>cTop){ $('#comment_content').blur(); var commentWidth = $('#comment').width(); if(!+[1,] && version==6.0){ //$('.isfixed').css('width',commentWidth-32); } else{ $("#comment_area").addClass("isfixed"); $('.isfixed').css('width',commentWidth-10); $(".addforfix").show(); } if($("#comment_content").height()==24){ $(".top_sub").hide(); $("#comment_content_div").css("height","34px");//ie6,7 } } else{ $(".addforfix").hide(); $("#comment_area").removeClass("isfixed"); $(".top_sub").show(); $("#comment_content").removeClass("focus"); $("#comment_content_div").css("height","82px");//ie6,7 } });
    匿名评论 登录 或  注册 后发表评论,就可以设置您的用户名和头像了
    最新评论 刷新
    包卜篮球族|NBA - 每天都在进步
    © 2004- BbbOo.Com All Rights Reserved