var matchDomain; var multiSCIDList = ""; function multiOddsDetail(ID, cId, n) { window.open("http://vip.win007.com/changeDetail/multiHandicap.aspx?id=" + ID + "&companyID=" + cId + "&n=" + n, "", ""); } var pageSize = 150; matchdata.LeagueList = new _glodds.List(); matchdata.MatchList = new _glodds.List(); matchdata.CompanyList = new _glodds.List(); matchdata.Odds1List = new _glodds.List(); matchdata.Odds2List = new _glodds.List(); matchdata.Odds3List = new _glodds.List(); matchdata.CTypeNum = new Object(); var matchDomain; function LoadData() { //获取数据 var oXmlHttp = zXmlHttp.createRequest(); var url = "http://www.boqbf.com/odd/xml_odds_n.html"; if(url.indexOf('?') > 0){ url += '&companyID=' + Config.selectCompanyIds; }else{ url += '?companyID=' + Config.selectCompanyIds; } oXmlHttp.open("get", url, false); oXmlHttp.send(null); var data = oXmlHttp.responseText; matchdata.LeagueList = new _glodds.List(); matchdata.MatchList = new _glodds.List(); matchdata.CompanyList = new _glodds.List(); matchdata.Odds1List = new _glodds.List(); matchdata.Odds2List = new _glodds.List(); matchdata.Odds3List = new _glodds.List(); matchdata.CTypeNum = new Object(); //分隔大数据域 var domains = data.split(_glodds.SplitDomain); var leagueItem, matchItem, companyItem, nd; //处理联赛数据域 var leagueDomain = domains[0].split(_glodds.SplitRecord); matchdata.LeagueNum = leagueDomain.length; for (var i = 0; i < leagueDomain.length; i++) { leagueItem = new _glodds.League(leagueDomain[i]); matchdata.LeagueList.Add(leagueItem.lId, leagueItem); } //处理亚赔数据域 var oddsDomain = domains[2].split(_glodds.SplitRecord); for (var i = 0; i < oddsDomain.length; i++) { oddsItem = new _glodds.OddsAsian(oddsDomain[i]); matchdata.Odds1List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); } //处理欧赔数据域 var oddsDomain = domains[3].split(_glodds.SplitRecord); for (var i = 0; i < oddsDomain.length; i++) { oddsItem = new _glodds.Odds1x2(oddsDomain[i]); matchdata.Odds2List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); } //处理大小球数据域 var oddsDomain = domains[4].split(_glodds.SplitRecord); for (var i = 0; i < oddsDomain.length; i++) { oddsItem = new _glodds.OddsOU(oddsDomain[i]); matchdata.Odds3List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); } //处理所选公司有赔率的日期 //var dateDomain = domains[5].split(';'); Config.hsDateCountList = new Hashtable(); //for (var i = 0; i < dateDomain.length; i++) { // var arrItem = dateDomain[i].split('^'); // hsDateCountList.add(_oddsUitl.getOnlyDate(_oddsUitl.getDate(arrItem[0])), arrItem[1]); //} //处理比赛数据 matchDomain = domains[1].split(_glodds.SplitRecord); concernId = getCookie("Bet007Odds_concernId"); if (concernId == null) concernId = '_'; setDateCompanyCount(); SortData(); makeTable(1); } function setDateCompanyCount() { for (var i = 0; i < matchDomain.length; i++) { matchItem = new _glodds.Match(matchDomain[i], i); if (level != "1" && matchItem.level > level) continue; if (level == 0 && ((matchItem.level == "-1" && matchType == 2) || (matchItem.level == "-2" && matchType == 1))) continue; var arrScheduleDate = Config.scheduleDateList.split(','); for (var k = 0; k < arrScheduleDate.length - 1; k++) { var selDate = _oddsUitl.getDate(arrScheduleDate[k]); if (matchType != 2 && level != 0) { if ((matchItem.time - selDate) / 60000 / 60 < 8) continue; if ((matchItem.time - new Date() - difftime) / 60000 / 60 > 4) { if ((matchItem.time - selDate) / 60000 / 60 >= 32) continue; } } for (var j = 0; j < SelCompany.length; j++) { var haveOdds = false; //只判断主盘,如果没有主盘,其它盘也不会有 if (matchdata.Odds1List.Get(matchItem.mId + "_" + SelCompany[j] + "_1") != null || matchdata.Odds2List.Get(matchItem.mId + "_" + SelCompany[j] + "_1") != null || matchdata.Odds3List.Get(matchItem.mId + "_" + SelCompany[j] + "_1") != null) { haveOdds = true; break; } } if (!haveOdds && !Config.hsDateCountList.containsKey(arrScheduleDate[k])) Config.hsDateCountList.add(arrScheduleDate[k], 0); else if (haveOdds) { if (Config.hsDateCountList.containsKey(arrScheduleDate[k])) Config.hsDateCountList.items[arrScheduleDate[k]] = parseInt(Config.hsDateCountList.get(arrScheduleDate[k])) + 1; else Config.hsDateCountList.add(arrScheduleDate[k], 1); } } } } function showOrHiddenMulti(sID, companyID) { var isShow = multiSCIDList.indexOf(sID + "_" + companyID) != -1; if (isShow) multiSCIDList = multiSCIDList.replace(sID + "_" + companyID + "_", ""); else multiSCIDList += sID + "_" + companyID + "_"; isShow = !isShow; var oddsItem, objTab; oddsItem = matchdata.Odds1List.Get(sID + "_" + companyID + "_1"); if (oddsItem != null) { if (oddsItem.maxNum <= 1) return; objTab = document.getElementById("odds_" + sID); for (var j = 0; j < objTab.rows.length; j++) { var row = objTab.rows[j]; if (row.id.indexOf("_" + companyID + "_1") != -1) { //row.cells[0].rowSpan = isShow ? oddsItem.maxNum : 1; //row.cells[1].rowSpan = isShow ? oddsItem.maxNum : 1; if (isShow) row.cells[1].innerHTML = row.cells[1].innerHTML.replace("jia", "jian"); else row.cells[1].innerHTML = row.cells[1].innerHTML.replace("jian", "jia"); row.style.backgroundColor = isShow ? "#f2f9fd" : "#ffffff"; for (var k = 2; k <= oddsItem.maxNum; k++) { objTab.rows[j + k - 1].style.display = isShow ? "" : "none"; } } } } } function writeCookie(name, value) { var expire = new Date((new Date()).getTime() + 365 * 3600000); var arrName = name.split('#'); if (arrName.length > 1)//日期参数的cookie只保存到该日期两天后,避免积累太多cookie expire = new Date(new Date(arrName[1]).getTime() + 48 * 3600000); expire = ";path=/;expires=" + expire.toGMTString(); document.cookie = name + "=" + value + expire; } function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else return null; } function makeTable(page) { showCloseCompany(); isChangePage = getChangePageCookie(); if (isChangePage)//两种情况下重置:1、选条件筛选切换过页面;2、选过日期。 setAllLeague(); hiddenID = getCookie(Config.hiddenCookieName); if (hiddenID == null) hiddenID = "_"; var leagueItem, matchItem, companyItem, nd; var oddsCount = 0, pageCount = 0; //var hh = 0; strZuodiList = ","; strRunList = ","; strNotOpenList = ","; var starNum = pageSize * (page - 1) + 1; var ArrayHiddenID = hiddenID.split("_"); for (var i = 0; i < matchdata.LeagueNum; i++) { leagueItem = matchdata.LeagueList.items[i]; leagueItem.matchNum = 0; leagueItem.showNum = 0; } matchdata.MatchNum = 0; var html = new Array(); for (var i = 0; i < matchDomain.length; i++) { matchItem = new _glodds.Match(matchDomain[i], i); if (level != "1" && matchItem.level > level) continue; if (level == 0) { if (matchItem.level == "-1" && matchType == 2 || matchItem.level == "-2" && matchType == 1) continue; } if (matchType != 2 && level != 0) { if ((matchItem.time - Config.selDate) / 60000 / 60 < 8) continue; if ((matchItem.time - new Date() - difftime) / 60000 / 60 > 4) { if ((matchItem.time - Config.selDate) / 60000 / 60 >= 32) continue; } } var haveOdds = false; var hasZuodi = false; for (var j = 0; j < SelCompany.length; j++) { var oddsItem = matchdata.Odds1List.Get(matchItem.mId + "_" + SelCompany[j] + "_1"); //if (oddsItem == null) continue; //无亚盘的情况,默认大小只有主盘 var oddsNum = oddsItem == null ? 1 : oddsItem.maxNum; for (var k = 1; k <= oddsNum; k++) { if (k > 1) oddsItem = matchdata.Odds1List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k); if (oddsItem != null) { haveOdds = true; if (!hasZuodi) hasZuodi = oddsItem.zoudi == "True"; if (haveOdds & hasZuodi) break; } if (matchdata.Odds2List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k) != null) { haveOdds = true; if (haveOdds & hasZuodi) break; } if (matchdata.Odds3List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k) != null) { haveOdds = true; if (haveOdds & hasZuodi) break; } } } if (!haveOdds) continue; matchdata.MatchNum++; if (hasZuodi) strZuodiList += matchItem.mId + ","; matchdata.MatchList.Add(matchItem.mId, matchItem); leagueItem = matchdata.LeagueList.Get(matchItem.lId); leagueItem.matchNum++; if (matchItem.state == 0) strNotOpenList += matchItem.mId + ","; else if (matchItem.state > 0) strRunList += matchItem.mId + ","; if (matchdata.MatchNum == 5) { //html.push("
广告:极速比分、指数二合一,滚球分析首选捷报比分
"); } if ((hiddenID != "_" && hiddenID.indexOf("_" + matchItem.mId + "_") != -1) || (hiddenID == "_" && Config.isAll == 0 && leagueItem.important == "0")) { //hh++; continue; } else if (level == "1" && hiddenID == "_" && matchItem.level > level) { //hh++; continue; } oddsCount++; leagueItem.showNum++; if (ieNum > 0 && ieNum < 9 && oddsCount < starNum) continue; pageCount++; if (ieNum > 0 && ieNum < 9 && pageCount > pageSize) break; /*if ((pageCount - 1) * 2 < Adcount) { html.push("
" + (Config.language == 0 ? "广告" : "廣告") + ":" + adinfo2[(pageCount - 1) * 2] + "
"); if ((pageCount - 1) * 2 + 1 < Adcount) html.push("
" + (Config.language == 0 ? "广告" : "廣告") + ":" + adinfo2[(pageCount - 1) * 2 + 1] + "
"); html.push("
"); }*/ html.push('
'); html.push('
'); html.push('
');// if (leagueItem.url != "") html.push("" + leagueItem.getName() + ""); else html.push("" + leagueItem.getName() + ""); html.push(' ' + _oddsUitl.getDtStr(matchItem.time) + '
'); var state = getMatchState(matchItem.state); switch (matchItem.state) { case "1": state = Math.floor((new Date() - matchItem.time2 - difftime) / 60000); if (state > 45) state = "45+" if (state < 1) state = "1"; state = state + ""; break; case "3": state = Math.floor((new Date() - matchItem.time2 - difftime) / 60000) + 46; if (state > 90) state = "90+"; if (state < 46) state = "46"; state = state + ""; break; } html.push('
' + state + '
'); html.push(''); var strScore = matchItem.state == "0" ? "VS" : matchItem.homeScore + "-" + matchItem.guestScore; html.push(''); html.push(''); html.push('
');// style="width:' + (soccer_scheduleid.indexOf(matchItem.mId) != -1 ? "180" : "150") + 'px;" //html.push('
' + (Config.language == 0 ? "亚" : "亞") + '
'); //html.push('
' + (Config.language == 0 ? "欧" : "歐") + '
'); //html.push("
"); //html.push('
'); //if (soccer_scheduleid.indexOf(matchItem.mId) != -1) // // html.push('
'); // html.push("
" + (Config.language == 1 ? "盤" : "盘") + "
"); //if (Ba_Soccer.indexOf(matchItem.mId) != -1) // html.push("
" + (Config.language == 0 ? "荐" : "薦") + "
"); //if (concernId.indexOf(matchItem.mId) == -1) // html.push('
');// //else //html.push('
');// html.push('
'); html.push('
'); //var allOddsNum = matchdata.Odds1List.getSumNum(matchItem.mId); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); html.push(''); var numTd = ""; for (var j = 0; j < SelCompany.length; j++) { var haveOneOdds = false; oddsItem = matchdata.Odds1List.Get(matchItem.mId + "_" + SelCompany[j] + "_1"); //无亚盘的情况,默认大小只有主盘 var companyOddsNum = oddsItem == null ? 1 : oddsItem.maxNum; // matchdata.Odds1List.GetMaxNum(matchItem.mId + "_" + SelCompany[j] + "_"); var isShowMulti = multiSCIDList.indexOf(matchItem.mId + "_" + SelCompany[j]) != -1;//当前公司是否显示多盘数据 var showNum = isShowMulti ? companyOddsNum : 1;//公司没选择显示多盘时只显示主盘 for (var k = 1; k <= companyOddsNum; k++) { if (k > 1) oddsItem = matchdata.Odds1List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k); html.push(" 1 ? "#f2f9fd" : "#ffffff") + ";height:30px;" + (!isShowMulti && k > 1 ? "display:none;" : "") + "\" id='odds_" + matchItem.mId + "_" + SelCompany[j] + "_" + k + "'>"); //onmouseover=\"this.style.backgroundColor='#fdd';\" onmouseout=\"this.style.backgroundColor='" + (oddsItem != null && oddsItem.close == "True" ? "#ccc" : "white") if (k == 1) numTd = companyOddsNum > 1 ? isShowMulti ? "" : "" : " "; else numTd = "盘口" + k; html.push(""); if (oddsItem != null) { haveOneOdds = true; html.push(""); html.push(""); html.push(""); } else html.push(""); oddsItem = matchdata.Odds2List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k); if (oddsItem != null) { haveOneOdds = true; html.push(""); html.push(""); html.push(""); } else html.push(""); oddsItem = matchdata.Odds3List.Get(matchItem.mId + "_" + SelCompany[j] + "_" + k); if (oddsItem != null) { haveOneOdds = true; html.push(""); html.push(""); html.push(""); } else html.push(""); if (haveOneOdds) { if (k == 1) html.push("");// else html.push("");// } else html.push(""); } } html.push("
公司多' + (Config.language == 0 ? "盘" : "盤") + '主' + (Config.language == 0 ? "队" : "隊") + '' + (Config.language == 0 ? "让" : "讓") + '球客' + (Config.language == 0 ? "队" : "隊") + '主' + (Config.language == 0 ? "胜" : "勝") + '和局客' + (Config.language == 0 ? "胜" : "勝") + '大球' + (Config.language == 0 ? "盘" : "盤") + '口小球' + (Config.language == 0 ? "变" : "變") + '化
" + (k == 1 ? company[SelCompany[j]].split(",")[Config.language] + (oddsItem != null && oddsItem.zoudi == "True" ? "" : "") + (oddsItem != null && oddsItem.close == "True" ? "
(封)" : "") : "") + "
" + numTd + "
" + oddsItem.homeF + "
" + oddsItem.home + "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
" + oddsItem.awayF + "
" + oddsItem.away + "
" + oddsItem.hwF + "
" + oddsItem.hw + "
" + oddsItem.stF + "
" + oddsItem.st + "
" + oddsItem.awF + "
" + oddsItem.aw + "
" + oddsItem.overF + "
" + oddsItem.over + "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
" + oddsItem.underF + "
" + oddsItem.under + "
" + (Config.language == 0 ? "详" : "詳") + "
" + (Config.language == 0 ? "详" : "詳") + "
"); if (pageCount >= 2 && pageCount < 2 + imgad2.length && imgad2[pageCount - 2] != '') { html.push("
" + imgad2[pageCount - 2] + "
"); } } if (ieNum > 0 && ieNum < 9) { if (oddsCount > 0) { var total = Math.ceil(oddsCount / pageSize); } if (total > 1) document.getElementById("page").innerHTML = getPageStr(total, page); else document.getElementById("page").innerHTML = ""; } // document.getElementById("hiddenCount").innerHTML = hh; if (matchdata.MatchList.items.length == 0) html.push("
" + (Config.language == 0 ? "所选日期没有比赛,您可以选其它日期或重新选择其它公司" : "所選日期沒有比賽,您可以選其它日期或重新選擇其它公司") + "。
"); else if (matchdata.MatchNum == 0) html.push("
" + (Config.language == 0 ? "没有符合要求的比赛,您可以选择查看全部赛事" : "沒有符合要求的比賽,您可以選擇查看全部賽事") + "。
"); document.getElementById("odds").innerHTML = html.join(""); //处理日期数据域 var str = "", tmp; if (matchType != 2 && level != 0) { str = ""; } document.getElementById("dateList").innerHTML = str; var strLeaguList = getLegList(sclassSelectNum); createLeague(sclassSelectNum, strLeaguList, 1); // if (oldLevel != -1 && oldLevel != level) document.getElementById("matchType" + oldLevel).className = ""; // if (oldLevel != level) document.getElementById("matchType" + level).className = "selected"; oldLevel = level; document.getElementById("oddsLoading").style.display = "none"; } var xml1 = zXmlHttp.createRequest(); var oldXML = ""; function getxml() { try { xml1.open("get", "http://www.boqbf.com/odd/xml_ch_odds_m_n.html", true); xml1.onreadystatechange = refresh; xml1.send(null); } catch (e) { console.log(e); } window.setTimeout("getxml()", 6000); } function refresh() { if (xml1.readyState != 4 || (xml1.status != 200 && xml1.status != 0)) return; if (oldXML == xml1.responseText) return oldXML = xml1.responseText; var arr; var changeIDList = ","; var playFlash = false; //console.log(xml1.responseText); //亚赔 if (xml1.responseText == null || xml1.responseText == "") return; var root = xml1.responseXML.documentElement.childNodes[0]; if (typeof (root) == "undefined") return; if (root == null) return; var playSound = false; var num = 0; for (i = 0; i < root.childNodes.length; i++) { arr = root.childNodes[i].childNodes[0].nodeValue.split(","); //matchid,companyid,goal,home,away,close,zoudi,num if (Config.selectCompanyIds.indexOf("," + arr[1] + ",") < 0) continue; var tr = document.getElementById("odds_" + arr[0] + "_" + arr[1] + "_" + arr[7]); if (tr == null) continue; num = arr[7] == "1" ? 1 : 1; oddsItem = matchdata.Odds1List.Get(arr[0] + "_" + arr[1] + "_" + arr[7]); if (oddsItem == null) { //开盘 var tmp = arr[0] + "," + arr[1] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[5] + "," + arr[6] + "," + arr[7]; oddsItem = new _glodds.OddsAsian(tmp); matchdata.Odds1List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); tr.cells[1 + num].innerHTML = "
" + oddsItem.homeF + "
" + oddsItem.home + "
"; tr.cells[2 + num].innerHTML = "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
"; tr.cells[3 + num].innerHTML = "
" + oddsItem.awayF + "
" + oddsItem.away + "
"; tr.cells[0].innerHTML = company[arr[1]].split(",")[Config.language] + (oddsItem.close == "True" ? "
(封)" : "") + (oddsItem.zoudi == "True" ? "" : ""); if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[7] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[7] + ","; } if (oddsItem.goal != arr[2] || oddsItem.home != arr[3] || oddsItem.away != arr[4]) { tr.cells[2 + num].style.backgroundColor = TdBgColor(oddsItem.goal, arr[2]); tr.cells[1 + num].style.backgroundColor = TdBgColor(oddsItem.home, arr[3]); tr.cells[3 + num].style.backgroundColor = TdBgColor(oddsItem.away, arr[4]); oddsItem.goal = arr[2]; oddsItem.home = arr[3]; oddsItem.away = arr[4]; tr.cells[1 + num].innerHTML = "
" + oddsItem.homeF + "
" + oddsItem.home + "
"; tr.cells[2 + num].innerHTML = "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
"; tr.cells[3 + num].innerHTML = "
" + oddsItem.awayF + "
" + oddsItem.away + "
"; if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[7] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[7] + ","; } var comName = company[arr[1]].split(",")[Config.language]; if (oddsItem.close != arr[5]) { oddsItem.close = arr[5]; if (oddsItem.close == "True") comName += "
(封)"; } if (oddsItem.zoudi != arr[6] && num == 1) { oddsItem.zoudi = arr[6]; tr.cells[0].innerHTML = comName + (oddsItem.zoudi == "True" ? "" : ""); } if (Config.soundCheck && playFlash == false && document.getElementById("table_" + arr[0]).style.display == "") playFlash = true; } //欧赔 root = xml1.responseXML.documentElement.childNodes[1]; for (i = 0; i < root.childNodes.length; i++) { arr = root.childNodes[i].childNodes[0].nodeValue.split(","); //matchid,companyid,hw,st,gw,num if (Config.selectCompanyIds.indexOf("," + arr[1] + ",") < 0) continue; var tr = document.getElementById("odds_" + arr[0] + "_" + arr[1] + "_" + arr[5]); if (tr == null) continue; num = arr[5] == "1" ? 1 : 1; oddsItem = matchdata.Odds2List.Get(arr[0] + "_" + arr[1] + "_" + arr[5]); if (oddsItem == null) { //开盘 var tmp = arr[0] + "," + arr[1] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[5]; oddsItem = new _glodds.Odds1x2(tmp); matchdata.Odds2List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); tr.cells[4 + num].innerHTML = "
" + oddsItem.hwF + "
" + oddsItem.hw + "
"; tr.cells[5 + num].innerHTML = "
" + oddsItem.stF + "
" + oddsItem.st + "
"; tr.cells[6 + num].innerHTML = "
" + oddsItem.awF + "
" + oddsItem.aw + "
"; if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[5] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[5] + ","; } if (oddsItem.hw != arr[2] || oddsItem.st != arr[3] || oddsItem.aw != arr[4]) { tr.cells[4 + num].style.backgroundColor = TdBgColor(oddsItem.hw, arr[2]); tr.cells[5 + num].style.backgroundColor = TdBgColor(oddsItem.st, arr[3]); tr.cells[6 + num].style.backgroundColor = TdBgColor(oddsItem.aw, arr[4]); oddsItem.hw = arr[2]; oddsItem.st = arr[3]; oddsItem.aw = arr[4]; tr.cells[4 + num].innerHTML = "
" + oddsItem.hwF + "
" + oddsItem.hw + "
"; tr.cells[5 + num].innerHTML = "
" + oddsItem.stF + "
" + oddsItem.st + "
"; tr.cells[6 + num].innerHTML = "
" + oddsItem.awF + "
" + oddsItem.aw + "
"; if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[5] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[5] + ","; } if (Config.soundCheck && playFlash == false && document.getElementById("table_" + arr[0]).style.display == "") playFlash = true; } //大小 root = xml1.responseXML.documentElement.childNodes[2]; for (i = 0; i < root.childNodes.length; i++) { arr = root.childNodes[i].childNodes[0].nodeValue.split(","); //matchid,companyid,goal,over,under,num if (Config.selectCompanyIds.indexOf("," + arr[1] + ",") < 0) continue; var tr = document.getElementById("odds_" + arr[0] + "_" + arr[1] + "_" + arr[5]); if (tr == null) continue; num = arr[5] == "1" ? 1 : 1; oddsItem = matchdata.Odds3List.Get(arr[0] + "_" + arr[1] + "_" + arr[5]); if (oddsItem == null) { //开盘 var tmp = arr[0] + "," + arr[1] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[2] + "," + arr[3] + "," + arr[4] + "," + arr[5]; oddsItem = new _glodds.OddsOU(tmp); matchdata.Odds3List.Add(oddsItem.mId + "_" + oddsItem.cId + "_" + oddsItem.num, oddsItem); tr.cells[7 + num].innerHTML = "
" + oddsItem.overF + "
" + oddsItem.over + "
"; tr.cells[8 + num].innerHTML = "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
"; tr.cells[9 + num].innerHTML = "
" + oddsItem.underF + "
" + oddsItem.under + "
"; if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[5] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[5] + ","; } if (oddsItem.goal != arr[2] || oddsItem.over != arr[3] || oddsItem.under != arr[4]) { tr.cells[7 + num].style.backgroundColor = TdBgColor(oddsItem.over, arr[3]); tr.cells[8 + num].style.backgroundColor = TdBgColor(oddsItem.goal, arr[2]); tr.cells[9 + num].style.backgroundColor = TdBgColor(oddsItem.under, arr[4]); oddsItem.goal = arr[2]; oddsItem.over = arr[3]; oddsItem.under = arr[4]; tr.cells[7 + num].innerHTML = "
" + oddsItem.overF + "
" + oddsItem.over + "
"; tr.cells[8 + num].innerHTML = "
" + Goal2GoalCn(oddsItem.goalF) + "
" + Goal2GoalCn(oddsItem.goal) + "
"; tr.cells[9 + num].innerHTML = "
" + oddsItem.underF + "
" + oddsItem.under + "
"; if (changeIDList.indexOf("," + arr[0] + "_" + arr[1] + "_" + arr[5] + ",") < 0) changeIDList += arr[0] + "_" + arr[1] + "_" + arr[5] + ","; } if (Config.soundCheck && playFlash == false && document.getElementById("table_" + arr[0]).style.display == "") playFlash = true; } window.setTimeout("colors_water('" + changeIDList + "')", 30000); if (playFlash) ShowSound("images/oddssound.swf"); } function colors_water(IDList) { var A = IDList.split(","); var tr; for (var i = 1; i < A.length - 1; i++) { var arrVa = A[i].split('_'); var num = parseInt(arrVa[2]); num = num == 1 ? 1 : 1; tr = document.getElementById("odds_" + A[i]); if (tr == null) continue; for (var j = 1; j <= 9; j++) tr.cells[j + num].style.backgroundColor = ""; } } function SelectCompany() { var i, inputs; var j = 0; var isSuc = true; SelCompany = new Array(); Config.selectCompanyIds = ","; inputs = document.getElementById("companyList").getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox" && inputs[i].checked) { SelCompany[j++] = inputs[i].value; Config.selectCompanyIds += inputs[i].value + ","; } } if (j > 5 || j == 0) { if (j > 5) alert("最多只能" + (Config.language == 0 ? "选" : "選") + "五家公司!" + (Config.language == 0 ? "请重新选择!" : "請重新選擇!")); else alert("最少要" + (Config.language == 0 ? "选" : "選") + "一家公司!" + (Config.language == 0 ? "请重新选择!" : "請重新選擇!")); } else { //Config.selDate = "";//清除之前的选择日期,以求自动配置所选公司有赔率的最近日期 writeCookie("MultiCompany", Config.selectCompanyIds.substring(1, Config.selectCompanyIds.length - 1)); LoadData(); setSortShowOrHidden(); getDefaultType(); getImportant(); } } function DefaultCompany() { Config.selectCompanyIds = "1,3,8,12"; SelCompany = Config.selectCompanyIds.split(","); Config.selectCompanyIds = "," + Config.selectCompanyIds + ","; writeCookie("MultiCompany", ""); LoadData(); inputs = document.getElementById("companyList").getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type != "checkbox") continue; inputs[i].checked = false; if (Config.selectCompanyIds.indexOf("," + inputs[i].value + ",") >= 0) inputs[i].checked = true; } for (var i = 0; i < SelCompany.length; i++) document.getElementById("company" + SelCompany[i]).checked = true; setSortShowOrHidden(); } function SetLanguage(l) { if (Config.language != l) { Config.language = l; changeUrl(Config.language); Config.writeCookie(); } // else // LoadData(); } Config.selectCompanyIds = getCookie("MultiCompany"); if (Config.selectCompanyIds == null || Config.selectCompanyIds == "") Config.selectCompanyIds = "1,3,23,31"; var SelCompany = Config.selectCompanyIds.split(","); Config.selectCompanyIds = "," + Config.selectCompanyIds + ",";