function getBkHdpDetailUrl(sclassId, teamId, matchSeason, halfOrAll) { var url = _basketballWebDomain + "team/handicapdetail?sclassid=" + sclassId + "&teamid=" + teamId + "&matchseason=" + matchSeason + "&halforall=" + halfOrAll; return url; } function getBkOuDetailUrl(sclassId, teamId, matchSeason, halfOrAll) { var url = _basketballWebDomain + "team/ouhandicapdetail?sclassid=" + sclassId + "&teamid=" + teamId + "&matchseason=" + matchSeason + "&halforall=" + halfOrAll; return url; } function getFbPanluUrl(scheduleId, companyId) { var url = "/soccer/oddsstats/" + scheduleId; if (typeof (companyId) != "undefined" && companyId != '') url += "?cid=" + companyId; return url; } function openFbPanlu(scheduleId, companyId) { window.open(getFbPanluUrl(scheduleId, companyId),'', 'scrollbars=yes,resizable=yes,width=662, height=650,left=50,top=100'); } function getHistoryCornerUrl(scheduleId) { var url = "/history/corner/" + scheduleId; return url; } function openHistoryCornerUrl(scheduleId) { window.open(getHistoryCornerUrl(scheduleId)); } function SetShuntingFav() { var link = "http://171.244.33.244:9898/navigator.htm"; try { window.external.addFavorite(link, "Bongdalu Navigator"); } catch (ex) { window.open(link); } } function timeToText(t2, type) { type = type || 0; var fmts = [ "dd/MM/yyyy hh:mm:ss",/*0*/ "dd/MM/yyyy hh:mm:ss",/*1*/ "dd/MM/yyyy",/*2*/ "dd/MM",/*3*/ "hh:mm",/*4*/ "t2 dd",/*5*/ "dd/MM hh:mm",/*6*/ "dd/MM/yy",/*7*/ "yyyy",/*8*/ "dd/MM/yyyy",/*9*/ "t2 dd hh:mm",/*10*/ "hh:mm,ww,dd/MM/yyyy",/*11*/ "dd/MM/yyyy(w)",/*12*/ "dd/MM/yyyy hh:mm w",/*13*/ "dd/MM hh:mm",/*14*/ "dd/MM hh:mm",/*15*/ "dd/MM/yy",/*16*/ "dd/MM/yyyy",/*17*/ "dd/MM/yyyy hh:mm",/*18*/ "d/M/yyyy hh:mm",/*19*/ "yyyy.MM.dd hh:mm",/*20*/ "M-d hh:mm", /*21*/ "dd/MM/yyyy hh:mm", /*22*/ "dd/MM/yyyy hh:mm" /*23*/ ]; return dateFtt(fmts[type] || fmts[0], t2); } function overDropDownBG(obj) { obj.style.backgroundColor = "#3d980a"; } //安全着陆页入口显隐处理 function simplePage() { if (typeof (cnzzModel) == 'undefined') return; if (cnzzModel.cnz == 7) { document.getElementsByClassName("data_td")[0].style.display = "table-cell"; var toolimg = document.getElementsByClassName("toolimg"); for (var i = 0; i < toolimg.length; i++) { toolimg[i].style.display = "table-cell"; } } if (cnzzModel.cnz == 5) { $(".loginBox").css("display", "none"); $(".liveOddsFilter").css("display", "none"); var tvLinks = $(".tvLinkBtn"); for (var i = 0; i < tvLinks.length; i++) { tvLinks[i].innerHTML = " "; } if (typeof (_settingObj) != "undefined") { _settingObj.showCorner = false; } } if (cnzzModel.cnz == 11 || cnzzModel.cnz == 12) { $(".oddsHead").attr("style", "display:table-cell !important"); $(".oddstd").attr("style", "display:table-cell !important"); } } //首页赔率公司选择下拉框 function OddsCompanySelect() { var company = [ "", "", "", "", "", "", "" ]; return company; } //篮球赔率比较页赔率公司顺序 function LQOddsComp() { return [31, 8, 3, 1, 2, 14]; } //展示进行中的赛事 function ShowInPlay() { //清空旧选择 filter.league = new Array(); filter.state = 1; SelectReset(1); SelectAll(2); SelectAll(3); SelectAll(4); var i; var hh = 0; //先全部隐藏,再显示进行中的赛事 var trs = document.getElementById("table_live").getElementsByTagName("tr"); for (var i = 1; i < trs.length; i++) { if (trs[i].getAttribute("index") != null) { trs[i].style.display = "none"; if (trs[i + 1]) trs[i + 1].style.display = "none"; if (!isFromSch && trs[i + 2]) trs[i + 2].style.display = "none"; } } if (orderby == "league") { if ($('.Leaguestitle')) $('.Leaguestitle').hide(); } for (var i = 1; i <= matchcount; i++) { var isShow = true; //状态过滤 if (filter.state == 1 && parseInt(A[i][8]) <= 0) { isShow = false; } if (isShow) { var elem = null; elem = document.getElementById("tr1_" + A[i][0]); if (elem) elem.style.display = ""; elem = document.getElementById("tr2_" + A[i][0]); if (elem) { if ((typeof (_showRemark) != "undefined" && _showRemark) && (!isFromSch && A[i][22] != "") || (isFromSch && (A[i][19] != "" || A[i][21] != ""))) { elem.style.display = ""; } else { elem.style.display = "none"; } } if (orderby == "league" && document.getElementById("tr_" + A[i][1])) document.getElementById("tr_" + A[i][1]).style.display = ""; } else hh = hh + 1; } document.getElementById("hiddencount").innerHTML = hh; SyncMatchClass(); if (typeof HandleDateTitle != "undefined" && HandleDateTitle instanceof Function) HandleDateTitle(); if (typeof InitFlashShow != "undefined" && InitFlashShow instanceof Function) InitFlashShow(); if (document.getElementById("topLine")) { if (matchcount > 0 && matchcount == hh) { $("#topLine").show(); } else { $("#topLine").hide(); } if (typeof (HandleTitle) == "function") HandleTitle(); } if (typeof (reorderAd) == "function") reorderAd(); if (typeof (InitTipsNum) != "undefined") InitTipsNum(); if (typeof (InitHeadShow) != "undefined") InitHeadShow(); hideResultTr(); } function OpenMobile() { if (!CheckEmpty(_touchWebDomain)) window.open(_touchWebDomain + "?from=pc"); } //比分页用户设置差异化 function settingDiff() { if (typeof (_settingObj) != "undefined") { _settingObj.forAllMatch = false; } } //默认关注联赛 function defaultFavLeague() { if (getCookie(_favLeagueKey) == null) { var leagueIds = ["766", "1248", "103", "31", "34", "36", "11", "8", "113"]; Config.setFavLeagueIds(leagueIds); } } if (typeof (Config) != "undefined") setTimeout("defaultFavLeague()"); //#region 足球详情内页 function LoadLiveData(result) { var data = "" if (!CheckEmpty(result)) { result = JSON.parse(result); if (result.ErrCode != 0) { ReOrderAd(); return; } else { data = result.Data; if (!CheckEmpty(data)) { var difCom = data.split('!'); if (difCom.length > 0) { var html = new Array(); html.push('