$(function() { $('.the-team').hover(function() { $(this).find(".mask-btn").show(); }, function() { $(this).find(".mask-btn").hide(); }) $(".dnl_right").bind("selectstart", function() { return false }); $(".dnl_left").bind("selectstart", function() { return false }) $('.zq-zhibo-open').click(function(){ $('.zq-zhibo-item').toggleclass('open-close'); $('.zq-luxiang-item').toggleclass('open-close'); }); }); $(document).ready(function() { var a = 0; var b; b = $(".temaizq .pic").length; $(".dnl_left").click(function() { if (b > 4) { a++; b = $(".temaizq .pic").length; if (a > b - 4) { $(".scrcont").stop(); a = b - 4; $(".scrcont").css("left", -a * 199) } else { if (a == 1) { $(".scrcont").animate({ left: -a * 199, }, 700) } else { $(".scrcont").animate({ left: -a * 199, }, 700) } } } }); $(".dnl_right").click(function() { if (b > 4) { if (a == 0) { $(".scrcont").stop(); $(".scrcont").css("left", "0px") } else { a--; if (a == 0) { $(".scrcont").animate({ left: 0, }, 700) } else { $(".scrcont").animate({ left: -a * 199, }, 700) } } } }) }); if ($(".zhixinlb").length) { if ($(".zclb_qh").length) { $(this).find(".zhixun_zhong").eq(0).show() }; $(".zx_title li").click(function() { $(this).addclass("zchove").siblings().removeclass("zchove"); $(".zclb_qh").find(".zhixun_zhong").eq($(this).index()).show().siblings().hide() }) }; if ($(".zblist-info").length) { chariqi() }; zhuangtai(); wuxingbs(); function wuxingbs() { var b = getdatestr(0)[0]; var c = math.floor((new date()).gettime() / 1000); var d = $('.temaizq .pic[data-matchtime^=' + b + ']'); $.each(d, function(i, n) { var a = datetounix($(n).attr("data-matchtime")); if (a < c) { $(n).find(".bs_ztai span").removeclass("nobing").html("比赛中") } }); var e = getdatestr(-1)[0]; var f = $('.temaizq .pic[data-matchtime^=' + e + ']'); $.each(f, function(i, n) { $(n).find(".bs_ztai span").html("高清直播") }) }; $(document).ready(function() { setinterval(function() { zhuangtai(); wuxingbs() }, 60000) }); var domainwww = $("body").attr("data-domainwww"); var domainstatic = $("body").attr("data-domainstatic"); var zburl = domainwww + "get/"; var pagezb = 1; var morcan = {}; if ($(".zblist-info").length) { $(".zhibo-more-btn").click(function() { if ($(".zhibo-more-btn").html() != "没有更多数据了") { morcan = {}; morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = $(".zhibo-more-btn").attr("data-sort"); if ($(".zhibo-more-btn").attr("data-sort") == "all") { morcan.page = pagezb; morcan.act = 101 }; if ($(".zhibo-more-btn").attr("data-sort") == "re") { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0 }; if ($(".zhibo-more-btn").attr("data-sort") == 1) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 2) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 2 }; if ($(".zhibo-more-btn").attr("data-sort") == 3) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 3 }; if ($(".zhibo-more-btn").attr("data-sort") == 4) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 4 }; zbqhajax(morcan); pagezb += 1 } }) }; $(".content-bottom-left-zb-fllist li").click(function() { pagezb = 1; $(this).addclass("sszhibo-active").siblings().removeclass("sszhibo-active"); $(".zblist-info").html(''); var a = $(this).attr("data-sort"); $(".zhibo-more-btn").attr("data-sort", a); $(".zhibo-more-btn").html("查看更多直播"); zbqhdata(); zbqhajax(qhcan) }); var qhcan = {}; function zbqhdata() { qhcan = {}; if ($(".zhibo-more-btn").attr("data-sort") == "all") { qhcan.act = 101 }; if ($(".zhibo-more-btn").attr("data-sort") == "re") { qhcan.act = 101; qhcan.competid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 1) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 2) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 2 }; if ($(".zhibo-more-btn").attr("data-sort") == 3) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 3 }; if ($(".zhibo-more-btn").attr("data-sort") == 4) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 4 } }; function zbqhajax(f) { $.ajax({ url: zburl, cache: false, type: 'post', async: false, datatype: 'json', data: f, success: function(r) { var b = r.data.paperlist; var c = r.competitionarr; var d = r.teamarr; if (b != undefined && b.length) { $.each(b, function(i, v) { var a = ''; a ='