//定义Config var Config = new Object(); Config.language = null; Config.rank = 0; Config.soundCheck = 0; Config.haveLetGoal = 1; Config.haveTotal = 1; Config.haveEurope = 0; Config.lastUrl = 0; Config.hiddenCookieName = 'Bet007OddshiddenID'; Config.filterCookieName = 'FOdds007Filter'; Config.isAllCookieName = 'Bet007OddsIsAll'; Config.selDate = ""; Config.isSimple = 1; Config.isAll = 0; Config.selectCompanyIds = ","; Config.scheduleDateList = ""; Config.hsDateCountList = new Hashtable(); Config.getCookie = function () { var Cookie = getCookie("Bet007Odds_Cookie"); if (Cookie == null) Cookie = ""; var Cookie = Cookie.split("^"); if (Cookie.length != 8) writeCookie("Bet007Odds_Cookie", null); else { this.language = parseInt(Cookie[0]); this.rank = parseInt(Cookie[1]); this.soundCheck = parseInt(Cookie[2]); this.haveLetGoal = parseInt(Cookie[3]); this.haveTotal = parseInt(Cookie[4]); this.haveEurope = parseInt(Cookie[5]); this.lastUrl = parseInt(Cookie[6]); this.isSimple = parseInt(Cookie[7]); } Config.isAll = getCookie(Config.isAllCookieName); Config.isAll = Config.isAll == null ? 0 : Config.isAll; Config.setStates(); } Config.setStates = function () { try { // document.getElementById("Language" + Config.language).className = "selected"; if (this.rank == 1) document.getElementById("chec_sort").checked = true; if (this.soundCheck == 1) document.getElementById("chec_Sound").checked = true; if (location.href.toLowerCase().indexOf("index") == -1) { document.getElementById("checkLet").checked = (Config.haveLetGoal == 1); document.getElementById("checkEu").checked = (Config.haveEurope == 1); document.getElementById("checkTotal").checked = (Config.haveTotal == 1); } } catch (e) { } } Config.writeCookie = function () { var value = this.language + "^" + this.rank + "^" + this.soundCheck + "^" + this.haveLetGoal + "^" + this.haveTotal + "^" + this.haveEurope + "^" + this.lastUrl + "^" + this.isSimple; writeCookie("Bet007Odds_Cookie", value); } var isChangePage = false;//用来判断用户是否切换过页面,为筛选重置的标识。两种情况下重置:1、选条件筛选切换过页面;2、选过日期。 function setUrls(i, n) { var arrFilter = getConditonList(2)//获取用户条件筛选信息 isChangePage = Config.lastUrl != i && arrFilter[2] != "";//用户选了条件筛选并在切换页面 writeCookie("win007Odds_changePage", isChangePage); Config.lastUrl = i; Config.writeCookie(); var url = ""; var urlName = urllist[i]; if (i > 2 && i < 6) url = "oldOdds" + (n == 0 ? "" : "_big") + ".aspx?t=" + urlName; else url = urlName + (n == 0 ? "" : "_big") + ".aspx"; location.href = url; } var urllist = "scoreOdds,multiIndex,multiIndex,1,4,5,company".split(','); var zXml = { useActiveX: (typeof ActiveXObject != "undefined"), useXmlHttp: (typeof XMLHttpRequest != "undefined") }; zXml.ARR_XMLHTTP_VERS = ["MSXML2.XmlHttp.6.0", "MSXML2.XmlHttp.3.0"]; function zXmlHttp() { } zXmlHttp.createRequest = function () { if (zXml.useXmlHttp) return new XMLHttpRequest(); if (zXml.useActiveX) //IE < 7.0 = use ActiveX { if (!zXml.XMLHTTP_VER) { for (var i = 0; i < zXml.ARR_XMLHTTP_VERS.length; i++) { try { new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]); zXml.XMLHTTP_VER = zXml.ARR_XMLHTTP_VERS[i]; break; } catch (oError) { } } } if (zXml.XMLHTTP_VER) return new ActiveXObject(zXml.XMLHTTP_VER); } alert("Sorry,XML object unsupported by your computer,please setup XML object or change explorer."); }; function Hashtable2() { this._hash = new Object(); this.add = function (key, value) { if (typeof (key) != "undefined") { this._hash[key] = typeof (value) == "undefined" ? null : value; return true; } else return false; } this.remove = function (key) { delete this._hash[key]; } this.keys = function () { var keys = new Array(); for (var key in this._hash) { keys.push(key); } return keys; } this.count = function () { var i = 0; for (var k in this._hash) { i++; } return i; } this.items = function (key) { return this._hash[key]; } this.contains = function (key) { return typeof (this._hash[key]) != "undefined"; } this.clear = function () { for (var k in this._hash) { delete this._hash[k]; } } } var GoalCn = ["0", "0/0.5", "0.5", "0.5/1", "1", "1/1.5", "1.5", "1.5/2", "2", "2/2.5", "2.5", "2.5/3", "3", "3/3.5", "3.5", "3.5/4", "4", "4/4.5", "4.5", "4.5/5", "5", "5/5.5", "5.5", "5.5/6", "6", "6/6.5", "6.5", "6.5/7", "7", "7/7.5", "7.5", "7.5/8", "8", "8/8.5", "8.5", "8.5/9", "9", "9/9.5", "9.5", "9.5/10", "10", "10/10.5", "10.5", "10.5/11", "11", "11/11.5", "11.5", "11.5/12", "12", "12/12.5", "12.5", "12.5/13", "13", "13/13.5", "13.5", "13.5/14", "14"]; var GoalCn2 = ["0", "-0/0.5", "-0.5", "-0.5/1", "-1", "-1/1.5", "-1.5", "-1.5/2", "-2", "-2/2.5", "-2.5", "-2.5/3", "-3", "-3/3.5", "-3.5", "-3.5/4", "-4", "-4/4.5", "-4.5", "-4.5/5", "-5", "-5/5.5", "-5.5", "-5.5/6", "-6", "-6/6.5", "-6.5", "-6.5/7", "-7", "-7/7.5", "-7.5", "-7.5/8", "-8", "-8/8.5", "-8.5", "-8.5/9", "-9", "-9/9.5", "-9.5", "-9.5/10", "-10"]; var week = new Array("(日)", "(一)", "(二)", "(三)", "(四)", "(五)", "(六)"); function Goal2GoalCn(goal) { if (goal == "") return ""; else { if (goal > 14 || goal < -10) return goal; else { if (goal >= 0) return GoalCn[parseInt(goal * 4)]; else return GoalCn2[Math.abs(parseInt(goal * 4))]; } } } function BgColor(odds1, odds2) { var bg = "normal"; if (odds1 < odds2) bg = "up"; if (odds1 > odds2) bg = "down"; return bg; } function TdBgColor(odds1, odds2) { var bg = ""; if (odds1 < odds2) bg = "#ff8888"; if (odds1 > odds2) bg = "#88ff88"; return bg; } var ua = navigator.userAgent.toLowerCase(); var ieNum = 0; try { // if (document.all && typeof (document.documentMode) != "undefined") // ieNum = document.documentMode; if (window.ActiveXObject) ieNum = ua.match(/msie ([\d.]+)/)[1]; } catch (e) { ieNum = 0; } var state_ch = Array(18); state_ch[0] = "推迟,推遲,Postp."; state_ch[1] = "中断,中斷,Pause"; state_ch[2] = "腰斩,腰斬,Abd"; state_ch[3] = "待定,待定,Pending"; state_ch[4] = "取消,取消,Cancel"; state_ch[13] = ",,Ft"; state_ch[14] = " , ,"; state_ch[15] = "上,上,Part1"; state_ch[16] = ",,HT"; state_ch[17] = "下,下,Part2"; state_ch[18] = "加,加,Ot"; state_ch[19] = "点,點,"; function getMatchState(state) { if (state.toString() == "") return ""; var arrState = state_ch[parseInt(state) + 14].split(","); return arrState.length < 2 ? "" : arrState[Config.language]; } var company = new Array(46); company[0] = "足彩,足彩"; company[1] = "澳彩,澳彩"; company[2] = "波音,波音"; company[3] = "Crown,Crown"; company[4] = "立博,立博"; company[5] = "云鼎,云鼎"; company[7] = "SNAI,SNAI"; company[8] = "Bet365,Bet365"; company[9] = "威廉,威廉"; company[12] = "易胜博,易勝博"; company[14] = "韦德,韋德"; company[15] = "SSP,SSP"; company[17] = "明陞,明陞"; company[18] = "Eurobet,Eurobet"; company[19] = "Interwetten,Interwetten"; company[22] = "10Bet,10Bet"; company[23] = "金宝博,金寶博"; company[24] = "12Bet,12Bet"; company[29] = "乐天堂,樂天堂"; company[31] = "利记,利記"; company[33] = "永利高,永利高"; //company[35]="盈禾"; company[35] = "盈禾,盈禾"; company[42] = "18bet,18bet"; company[45] = "ManbetX,ManbetX"; var riseColor = "#FFB0B0"; var fallColor = "#00FF44"; var changePkColor = "#D06666"; var nofityTimer = ""; var oldLevel = -1; var selDate = ""; var matchType = 0; var redcard = 1; var hiddenID; var strZuodiList = ",", strRunList = ",", strNotOpenList = ","; var sclassSelectNum = 0; var concernId = "_"; function isMulti() { var url = location.href.toLowerCase(); if (url.indexOf("aspx") == -1 || url.indexOf("multi") != -1) return true; else return false; } function isCompany() { var url = location.href.toLowerCase(); if (url.indexOf("company") != -1) return true; else return false; } //定义namespace var _glodds = new Object(); //公共变量 _glodds.SplitDomain = "$"; _glodds.SplitRecord = ";"; _glodds.SplitColumn = ","; //通用列表类 _glodds.List = function () { this.items = new Array(); this.keys = new Object(); this.Add = function (key, value) { if (typeof (key) != "undefined") { var vv = typeof (value) == "undefined" ? null : value; var idx = this.keys[key]; if (idx == null) { idx = this.items.length; this.keys[key] = idx; } this.items[idx] = vv; } } this.Get = function (key) { var idx = this.keys[key]; if (idx != null) return this.items[idx]; return null; } if (isMulti()) { this.GetMaxNum = function (key) { var num = 1; var count = 0; for (var k in this.keys) { if (k.indexOf(key) != -1) { var idx = this.keys[k]; if (idx != null) { count++; var item = this.items[idx]; var num2 = parseInt(item.num); if (num2 > num) num = num2; } else if (count > 0) break; } } return num; } this.getSumNum = function (key) { var hsNum = new Hashtable2(); var sum = 0; var count = 0; for (var k in this.keys) { if (k.indexOf(key) != -1) { var arrK = k.split('_'); var companyID = arrK[1]; var idx = this.keys[k]; if (idx != null) { var item = this.items[idx]; var num2 = parseInt(item.num); if (hsNum.contains(companyID)) { var num = parseInt(hsNum.items(companyID)); if (num < num2) hsNum.add(companyID, num2); } else hsNum.add(companyID, num2); } } } for (var j = 0; j < hsNum.keys().length; j++) { count++; sum += parseInt(hsNum.items(hsNum.keys()[j])); } return sum + (SelCompany.length - count); } } this.Clear = function () { for (var k in this.keys) { delete this.keys[k]; } delete this.keys; this.keys = null; this.keys = new Object(); for (var i = 0; i < this.items.length; i++) { delete this.items(i); } delete this.items; this.items = null; this.items = new Array(); } } //联赛项类 _glodds.League = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); this.lId = infoArr[0]; this.type = infoArr[1]; this.color = infoArr[2]; this.cnName = infoArr[3]; this.trName = infoArr[4]; this.enName = infoArr[5]; this.url = infoArr[6]; this.important = infoArr[7]; this.matchNum = 0; this.show = true; this.showNum = 0; this.getName = function () { if (Config.language == 2) return this.enName; else if (Config.language == 1) return this.trName; else return this.cnName; } } //比赛项类 _glodds.Match = function (infoStr, i) { var infoArr = infoStr.split(_glodds.SplitColumn); //265454,539,2009-5-6 23:00:00,,6734,学生体育,學生體育,Sportul Studentesc,14,6730,德尔塔,德爾塔,Delta Tulcea,2,0,0,0,,False; this.oddsIndex = (i + 1); this.mId = infoArr[0]; this.lId = infoArr[1]; // this.time = new Date(parseInt(infoArr[2])); this.time = AmountTimeDiff(infoArr[2]); var d = AmountTimeDiff(infoArr[2]); d.setTime(d.getTime() - 8 * 3600 * 1000); //方便当天4点后的显示到前一天的页面 var strD = _oddsUitl.getOnlyDate(d); if (Config.selDate == "") Config.selDate = _oddsUitl.getDate(strD); if (Config.scheduleDateList.indexOf(strD) == -1) Config.scheduleDateList += strD + ","; // if (infoArr[3] != "") this.time2 = new Date(parseInt(infoArr[3])); if (infoArr[3] != "") this.time2 = AmountTimeDiff(infoArr[3]); this.t1Id = infoArr[4]; this.t1CnName = infoArr[5]; this.t1TrName = infoArr[6]; this.t1EnName = infoArr[7]; this.t1Position = "" + (infoArr[8] != "" ? "[" + infoArr[8] + "]" : "") + ""; this.t2Id = infoArr[9]; this.t2CnName = infoArr[10]; this.t2TrName = infoArr[11]; this.t2EnName = infoArr[12]; this.t2Position = "" + (infoArr[13] != "" ? "[" + infoArr[13] + "]" : "") + ""; this.state = infoArr[14]; this.homeScore = infoArr[15]; this.guestScore = infoArr[16]; this.tv = infoArr[17]; this.flag = ""; if (infoArr[18] == "True") this.flag = "(中)"; this.level = infoArr[19]; if (!isCompany()) { this.h_redcard = infoArr[20]; this.g_redcard = infoArr[21]; this.h_yellow = infoArr[22]; this.g_yellow = infoArr[23]; if (infoArr[20] != "0") this.H_redcard = ""; else this.H_redcard = ""; if (infoArr[21] != "0") this.G_redcard = ""; else this.G_redcard = ""; if (infoArr[22] != "0") this.H_yellow = ""; else this.H_yellow = ""; if (infoArr[23] != "0") this.G_yellow = ""; else this.G_yellow = ""; this.matchCenter = infoArr[24]; } this.getT1Name = function () { if (Config.language == 2) return this.t1EnName; else if (Config.language == 1) return this.t1TrName; else return this.t1CnName; } this.getT2Name = function () { if (Config.language == 2) return this.t2EnName; else if (Config.language == 1) return this.t2TrName; else return this.t2CnName; } } //亚赔信息 _glodds.OddsAsian = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); //711286,12,1,1.15,0.80,1,1.15,0.80,False,False,1; this.mId = infoArr[0]; this.cId = infoArr[1]; this.goalF = infoArr[2]; this.homeF = infoArr[3]; this.awayF = infoArr[4]; this.goal = infoArr[5]; this.home = infoArr[6]; this.away = infoArr[7]; this.close = infoArr[8]; this.zoudi = infoArr[9]; if (isMulti()) { this.num = infoArr[10]; this.maxNum = infoArr[11]; } } //欧赔信息 _glodds.Odds1x2 = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); //711286,12,1.55,3.75,5.30,1.55,3.75,5.30,1; this.mId = infoArr[0]; this.cId = infoArr[1]; this.hwF = infoArr[2]; this.stF = infoArr[3]; this.awF = infoArr[4]; this.hw = infoArr[5]; this.st = infoArr[6]; this.aw = infoArr[7]; if (isMulti()) this.num = infoArr[8]; } //大小赔率信息 _glodds.OddsOU = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); //711286,12,2.75,0.85,0.95,2.75,0.85,0.95,1; this.mId = infoArr[0]; this.cId = infoArr[1]; this.goalF = infoArr[2]; this.overF = infoArr[3]; this.underF = infoArr[4]; this.goal = infoArr[5]; this.over = infoArr[6]; this.under = infoArr[7]; if (isMulti()) this.num = infoArr[8]; } //OddsAsian HT _glodds.OddsAsian_HT = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); //209092,8,0.5,0.95,0.95,0.5,1.025,0.875; this.mId = infoArr[0]; this.cId = infoArr[1]; this.goalF = infoArr[2]; this.homeF = infoArr[3]; this.awayF = infoArr[4]; this.goal = infoArr[5]; this.home = infoArr[6]; this.away = infoArr[7]; } //OddsOU HT _glodds.OddsOU_HT = function (infoStr) { var infoArr = infoStr.split(_glodds.SplitColumn); //209092,8,0.5,0.95,0.95,0.5,1.025,0.875 this.mId = infoArr[0]; this.cId = infoArr[1]; this.goalF = infoArr[2]; this.overF = infoArr[3]; this.underF = infoArr[4]; this.goal = infoArr[5]; this.over = infoArr[6]; this.under = infoArr[7]; } var _oddsUitl = new Object(); var matchdata = new Object(); _oddsUitl.getDayStr = function (dt) { return (dt.getMonth() + 1) + "-" + dt.getDate(); } _oddsUitl.getOnlyDate = function (dt) { return dt.getFullYear() + "-" + (dt.getMonth() + 1) + "-" + dt.getDate(); } _oddsUitl.getTimeStr = function (dt) { return dt.getHours() + ":" + (dt.getMinutes() < 10 ? "0" : "") + dt.getMinutes(); } _oddsUitl.getDtStr = function (dt) { return (dt.getMonth() + 1) + "-" + dt.getDate() + " " + (dt.getHours() < 10 ? "0" : "") + dt.getHours() + ":" + (dt.getMinutes() < 10 ? "0" : "") + dt.getMinutes(); } _oddsUitl.getDateTimeStr = function (dt) { return dt.getFullYear() + "-" + (dt.getMonth() + 1) + "-" + dt.getDate() + " " + (dt.getHours() < 10 ? "0" : "") + dt.getHours() + ":" + (dt.getMinutes() < 10 ? "0" : "") + dt.getMinutes(); } _oddsUitl.getDate = function (str) { var p = (str.indexOf("-") != -1 ? str.split("-") : str.split(",")); return new Date(p[0], parseInt(p[1], 10) - 1, p[2]); } var xmlBf = zXmlHttp.createRequest(); var oldBfXML = "" function getbfxml() { xmlBf.open("get", "http://www.boqbf.com/odd/xml_change.html", true); xmlBf.onreadystatechange = bfRefresh; xmlBf.send(null); window.setTimeout("getbfxml()", 6000); } var isScoreOddsUrl = location.href.toLowerCase().indexOf("oldOdds") == -1 && location.href.toLowerCase().indexOf("company") == -1; function bfRefresh() { if (xmlBf.readyState != 4 || (xmlBf.status != 200 && xmlBf.status != 0)) return; if (oldBfXML == xmlBf.responseText || xmlBf.responseText == "") return oldBfXML = xmlBf.responseText; var root = xmlBf.responseXML.documentElement; var D = new Array(); var matchindex, score1change, score2change, scorechange; var goTime, hometeam, guestteam, sclassname, score1, score2, tr; var matchNum = 0; var notify = "";// document.getElementById("notify").innerHTML; for (var i = 0; i < root.childNodes.length; i++) { D = root.childNodes[i].childNodes[0].nodeValue.split("^"); //0:ID,1:state,2:score1,3:score2,4:half1,5:half2,6:card1,7:card2,8:time1,9:time2,10:explain,11:lineup matchItem = matchdata.MatchList.Get(D[0]); if (matchItem == null) continue; if (document.getElementById("table_" + D[0]) == null) continue; score1change = false; if (matchItem.homeScore != D[2]) { matchItem.homeScore = D[2]; score1change = true; if (!isScoreOddsUrl) document.getElementById("hs_" + matchItem.mId).innerHTML = D[2]; document.getElementById("home_" + matchItem.mId).style.backgroundColor = "yellow"; } score2change = false; if (matchItem.guestScore != D[3]) { matchItem.guestScore = D[3]; score2change = true; if (!isScoreOddsUrl) document.getElementById("gs_" + matchItem.mId).innerHTML = D[3]; document.getElementById("guest_" + matchItem.mId).style.backgroundColor = "yellow"; } scorechange = score1change || score2change; if (scorechange && isScoreOddsUrl) document.getElementById("score_" + matchItem.mId).innerHTML = '' + D[2] + "-" + D[3] + ''; if (!isCompany()) { //红牌变化了 if (D[6] != matchItem.h_redcard) { matchItem.h_redcard = D[6]; if (D[6] == "0") document.getElementById("redcard1_" + D[0]).innerHTML = ""; else document.getElementById("redcard1_" + D[0]).innerHTML = " "; if (redcard) { document.getElementById("home_" + matchItem.mId).style.backgroundColor = "red";//#ff8888 // window.setTimeout("timecolors(" + D[0] +","+ matchindex + ")",12000); window.setTimeout("bfcolors_water(" + D[0] + ")", 12000); } } if (D[7] != matchItem.g_redcard) { matchItem.g_redcard = D[7]; if (D[7] == "0") document.getElementById("redcard2_" + D[0]).innerHTML = ""; else document.getElementById("redcard2_" + D[0]).innerHTML = " "; if (redcard) { document.getElementById("guest_" + matchItem.mId).style.backgroundColor = "red"; // window.setTimeout("timecolors(" + D[0] +","+ matchindex + ")",12000); window.setTimeout("bfcolors_water(" + D[0] + ")", 12000); } } //黄牌变化了 if (D[12] != matchItem.h_yellow) { matchItem.h_yellow = D[12]; if (D[12] == "0") document.getElementById("yellow1_" + D[0]).innerHTML = ""; else document.getElementById("yellow1_" + D[0]).innerHTML = " "; } if (D[13] != matchItem.g_yellow) { matchItem.g_yellow = D[13]; if (D[13] == "0") document.getElementById("yellow2_" + D[0]).innerHTML = ""; else document.getElementById("yellow2_" + D[0]).innerHTML = " "; } } //开赛时间 //if(matchItem.time!=D[8]) document.getElementById("mt_"+ matchItem.mId).innerHTML=D[8]; //matchItem.time=D[8]; // var t = D[9].split(","); // matchItem.time2= new Date(t[0],t[1],t[2],t[3],t[4],t[5]); matchItem.time2 = AmountTimeDiff2(D[9]); //状态 if (matchItem.state != D[1]) { matchItem.state = D[1]; switch (matchItem.state) { case "0": if (!isScoreOddsUrl) { document.getElementById("hs_" + matchItem.mId).innerHTML = ""; document.getElementById("gs_" + matchItem.mId).innerHTML = ""; document.getElementById("time_" + matchItem.mId).innerHTML = " "; } else { document.getElementById("score_" + matchItem.mId).innerHTML = 'VS'; } break; case "1": if (!isScoreOddsUrl) { document.getElementById("hs_" + matchItem.mId).innerHTML = D[2]; document.getElementById("gs_" + matchItem.mId).innerHTML = D[3]; } else { document.getElementById("score_" + matchItem.mId).innerHTML = '' + D[2] + "-" + D[3] + ''; } goTime = Math.floor((new Date() - matchItem.time2 - difftime) / 60000); if (goTime > 45) goTime = "45+" if (goTime < 1) goTime = "1"; document.getElementById("time_" + matchItem.mId).innerHTML = goTime + ""; // if (matchType == 1 && level != 0) MoveToBottom(D[0]); //开场隐藏 break; case "2": case "4": document.getElementById("time_" + matchItem.mId).innerHTML = getMatchState(D[1]); break; case "3": goTime = Math.floor((new Date() - matchItem.time2 - difftime) / 60000) + 46; if (goTime > 90) goTime = "90+"; if (goTime < 46) goTime = "46"; document.getElementById("time_" + matchItem.mId).innerHTML = goTime + ""; break; case "-1": document.getElementById("time_" + matchItem.mId).innerHTML = getMatchState(D[1]); window.setTimeout("MoveToBottom(" + D[0] + ")", 30000); break; default: document.getElementById("time_" + matchItem.mId).innerHTML = getMatchState(D[1]); MoveToBottom(D[0]); break; } } if (scorechange) { if (typeof (matchdata.TeamList) == "undefined") { hometeam = matchItem.getT1Name(); guestteam = matchItem.getT2Name(); } else { var teamIteamH = matchdata.TeamList.Get(matchItem.t1Id); var teamIteamG = matchdata.TeamList.Get(matchItem.t2Id); hometeam = teamIteamH.getName(); guestteam = teamIteamG.getName(); } score1 = D[2]; score2 = D[3]; if (score1change) { hometeam = "" + hometeam + ""; score1 = "" + D[2] + ""; } if (score2change) { guestteam = "" + guestteam + ""; score2 = "" + D[3] + ""; } //if (notify == "") notify = "入球提示:"; notify += hometeam + " " + score1 + "-" + score2 + " " + guestteam + "   "; //nofityTimer = window.setTimeout("clearNotify()", 20000); window.setTimeout("bfcolors_water('" + matchItem.mId + "')", 30000); if (Config.soundCheck) ShowSound("/images/sound.swf"); } } var objNotify = document.getElementById("notify"); if (notify != "") { if (delHtmlTag(objNotify.innerHTML) == delHtmlTag(notifyAD)) objNotify.innerHTML = notify; else objNotify.innerHTML += notify; window.clearTimeout(nofityTimer); notifyTimer = window.setTimeout("clearNotify('" + notify + "')", 20000); } else if (objNotify.innerHTML == "") objNotify.innerHTML = notifyAD; } function delHtmlTag(str) { return str.replace(/<[^>]+>/g, ""); //去掉所有的html标记 } function ShowSound(name) { if (ieNum > 0 && ieNum < 6) document.getElementById("sound").innerHTML = ""; else document.getElementById("sound").innerHTML = ""; } function clearNotify(str) { var result; try { var re = new RegExp(str.replace("(", "\(").replace(")", "\)").replace("[", "\[").replace("]", "])"), "ig"); var notify = document.getElementById("notify").innerHTML; var result = notify.replace(re, ""); if (notify == result) result = ""; if (result == "") result = notifyAD; } catch (e) { result = notifyAD; } document.getElementById("notify").innerHTML = result; } function bfcolors_water(ID) { try { document.getElementById("home_" + ID).style.backgroundColor = ""; document.getElementById("guest_" + ID).style.backgroundColor = ""; } catch (e) { } } function MoveToBottom(id) { try { //document.getElementById("table_" + id).parentElement.insertAdjacentElement("BeforeEnd",document.getElementById("table_" + id)); document.getElementById("table_" + id).style.display = "none"; } catch (e) { } } function getType(t) { var n = 0; for (; n < 4; n++) { if (document.getElementById("rb" + n).checked) break; } return n; } function getDefaultType() { for (var n = 0; n < 4; n++) { document.getElementById("rb" + n).checked = (n == 0); } } function CheckLeague(obj) { if (obj.checked) obj.parentElement.style.backgroundColor = "#ffeeee"; else obj.parentElement.style.backgroundColor = "white"; var leagueItem = matchdata.LeagueList.Get(obj.value); var objNum = document.getElementById("leagueNum"); var num = parseInt(objNum.innerHTML.replace("[", "").replace("]", "").Trim()); var t = getType(); var checkNum = (t == 0 ? leagueItem.matchNum : hsLeagueCount.items(leagueItem.lId)); objNum.innerHTML = "[" + (obj.checked ? num + checkNum : num - checkNum) + "]"; } function countOneFilter(j, checked) { var name = "leagueNum"; var obj = document.getElementById(name); var num = parseInt(obj.innerHTML.replace("[", "").replace("]", "").Trim()); var count = 0; if (kind == 1) { var n = 0; for (; n < 5; n++) { if (document.getElementById("rb" + n).checked) break; } for (var i = 1; i <= matchcount; i++) { if (A[i][0] > 0 && (n == 0 || (n == 1 && parseInt(A[i][13]) > 0) || (n == 2 && A[i][13] == "-1") || (n == 3 && A[i][13] == "0") || (n == 4 && A[i][28] == "True"))) { if (A[i][2] == B[j][0]) count++; } } } setFilterNum(name, checked ? num + count : num - count); } function SelectAll(value) { var i, inputs, choiseNum = 0; inputs = document.getElementById("league").getElementsByTagName("input"); var t = getType(); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type != "checkbox") continue; inputs[i].checked = value; if (inputs[i].checked) { var leagueItem = matchdata.LeagueList.Get(inputs[i].value); choiseNum += (t == 0 ? leagueItem.matchNum : hsLeagueCount.items(leagueItem.lId)); inputs[i].parentElement.style.backgroundColor = "#ffeeee"; } else { inputs[i].parentElement.style.backgroundColor = "white"; } } document.getElementById("leagueNum").innerHTML = "[" + choiseNum + "]"; } function SelectOK() { var i, j, inputs; inputs = document.getElementById("league").getElementsByTagName("input"); hiddenID = "_"; if (level == 1) level = 2; var IdList = (sclassSelectNum == 1 ? strZuodiList : sclassSelectNum == 2 ? strNotOpenList : sclassSelectNum == 3 ? strRunList : ""); var legList = "_"; var n = 0; for (; n < 4; n++) { if (document.getElementById("rb" + n).checked) break; } for (var i = 0; i < inputs.length; i++) { if (inputs[i].type != "checkbox") continue; if (inputs[i].checked) legList += inputs[i].value + "_"; } for (var i = 0; i < matchdata.LeagueNum; i++) { leagueItem = matchdata.LeagueList.items[i]; if (legList.indexOf("_" + leagueItem.lId + "_") != -1) { for (var j = 0; j < matchdata.MatchNum; j++) { matchItem = matchdata.MatchList.items[j]; if (matchItem.lId == leagueItem.lId) { if (IdList != "" && IdList.indexOf("," + matchItem.mId + ",") == -1) { hiddenID += matchItem.mId + "_"; } } } } else { for (var j = 0; j < matchdata.MatchNum; j++) { matchItem = matchdata.MatchList.items[j]; if (matchItem.lId == leagueItem.lId) { hiddenID += matchItem.mId + "_"; } } } } //去除精简默认选择 Config.isSimple = 0; Config.isAll = hiddenID == "_" ? 1 : 0; writeCookie(Config.isAllCookieName, Config.isAll); Config.writeCookie(); //保存赛事筛选项 if (document.location.href.toLocaleLowerCase().indexOf("company") == -1) { writeConditionCookie(1, n, legList); writeCookie(Config.hiddenCookieName, hiddenID); } else writeConditionCookie(0, 0, ''); makeTable(1); } var hsLeagueCount = new Hashtable2(); function changeSclassSelect(t) { var strLeagueList = getLegList(t) sclassSelectNum = t; createLeague(t, strLeagueList); } function getLegList(t) { hsLeagueCount = new Hashtable2(); var strLeagueList = ","; for (var i = 0; i < matchdata.MatchNum; i++) { matchItem = matchdata.MatchList.items[i]; if (t == 0 || (t == 1 && strZuodiList.indexOf("," + matchItem.mId + ",") != -1) || (t == 2 && strNotOpenList.indexOf("," + matchItem.mId + ",") != -1) || (t == 3 && strRunList.indexOf("," + matchItem.mId + ",") != -1)) { if (hsLeagueCount.contains(matchItem.lId)) { var num = parseInt(hsLeagueCount.items(matchItem.lId)) + 1; hsLeagueCount.add(matchItem.lId, num); } else hsLeagueCount.add(matchItem.lId, 1); if (strLeagueList.indexOf("," + matchItem.mId + ",") == -1) strLeagueList += matchItem.lId + ","; } //else if (t == 2 && strNotOpenList.indexOf("," + matchItem.mId + ",") != -1) { // if (hsLeagueCount.contains(matchItem.lId)) { // var num = parseInt(hsLeagueCount.items(matchItem.lId)) + 1; // hsLeagueCount.add(matchItem.lId, num); // } // else // hsLeagueCount.add(matchItem.lId, 1); // if (strLeagueList.indexOf("," + matchItem.mId + ",") == -1) // strLeagueList += matchItem.lId + ","; //} //else if (t == 3 && strRunList.indexOf("," + matchItem.mId + ",") != -1) { // if (hsLeagueCount.contains(matchItem.lId)) { // var num = parseInt(hsLeagueCount.items(matchItem.lId)) + 1; // hsLeagueCount.add(matchItem.lId, num); // } // else // hsLeagueCount.add(matchItem.lId, 1); // if (strLeagueList.indexOf("," + matchItem.mId + ",") == -1) // strLeagueList += matchItem.lId + ","; //} } return strLeagueList; } function createLeague(t, strLeagueList, kind) { html = new Array(); html.push(""); document.getElementById("league").innerHTML = html.join(""); document.getElementById("leagueNum").innerHTML = "[" + choiseNum + "]"; } function setAllLeague() { //hiddenID = getCookie(Config.hiddenCookieName); //if (hiddenID == null) hiddenID = "_"; //var sIDList = "_", leagueItem; //for (var i = 0; i < matchdata.LeagueNum; i++) { // leagueItem = matchdata.LeagueList.items[i]; // //if ((leagueItem.important == "1" && Config.isSimple == 1) || (Config.isSimple==0&&)) // sIDList += leagueItem.lId + "_"; //} //var matchItem, leagueItem; //for (var i = 0; i < matchdata.MatchNum; i++) { // matchItem = matchdata.MatchList.items[i]; // leagueItem = matchdata.LeagueList.Get(matchItem.lId); // if (sIDList.indexOf("," + matchItem.lId + ",") == -1 && ((leagueItem.important == "1" && Config.isSimple == 1) || (Config.isSimple == 0 && hiddenID.indexOf("_" + matchItem.mId + "_") == -1))) // sIDList += leagueItem.lId + "_"; //} //writeConditionCookie(1, 0, sIDList); //writeCookie(Config.hiddenCookieName, "_"); isChangePage = false;//重置筛选后去除标识 writeCookie("win007Odds_changePage", isChangePage); } function getChangePageCookie() { var change = getCookie("win007Odds_changePage"); return change != null ? change.toLowerCase() == "true" : false; } function getImportant() { var inputs = document.getElementById("league").getElementsByTagName("input"); var choiseNum = 0; var t = getType(); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type != "checkbox") continue; leagueItem = matchdata.LeagueList.Get(inputs[i].value); if (leagueItem.important == "1") { inputs[i].checked = true; choiseNum += (t == 0 ? leagueItem.matchNum : hsLeagueCount.items(leagueItem.lId)); } else inputs[i].checked = false; } document.getElementById("leagueNum").innerHTML = "[" + choiseNum + "]"; } function changeLeagueState() { var n = 0; if (!isOld) { for (; n < 4; n++) { if (document.getElementById("rb" + n).checked) break; } } var strLeagueList = getLegList(n); var choiseNum = 0; var IDName = isOld ? "checkboxleague_" : "myleague_"; for (var j = 0; j < matchdata.LeagueNum; j++) { leagueItem = matchdata.LeagueList.items[j]; if (leagueItem.matchNum == 0) continue; if (leagueItem.important == "1") { document.getElementById(IDName + (isOld ? j + 1 : j)).checked = true; document.getElementById(IDName + (isOld ? j + 1 : j)).parentElement.style.backgroundColor = "#ffeeee"; choiseNum += (n == 0 ? leagueItem.matchNum : hsLeagueCount.items(leagueItem.lId)); } else { document.getElementById(IDName + (isOld ? j + 1 : j)).checked = false; document.getElementById(IDName + (isOld ? j + 1 : j)).parentElement.style.backgroundColor = "#ffffff"; } } document.getElementById("leagueNum").innerHTML = "[" + choiseNum + "]"; } function hidematch(id) { document.getElementById("table_" + id).style.display = "none"; //document.getElementById("hiddenCount").innerHTML=parseInt(document.getElementById("hiddenCount").innerHTML)+1; hiddenID += id + "_"; writeCookie(Config.hiddenCookieName, hiddenID); } function ShowAllMatch() { sclassSelectNum = 0; document.getElementById("rb0").checked = true; document.getElementById("rb1").checked = false; document.getElementById("rb2").checked = false; document.getElementById("rb3").checked = false; createLeague(0, ""); SelectAll(true); SelectOK(); } function SetLevel(l, m) { level = l; matchType = m; LoadData(); // setSortShowOrHidden(); writeCookie("level", level); } function SetDate(data, index) { document.getElementById("conditionFilter").style.display = index == 0 ? "" : "none"; var arrD = data.split('-'); var y = arrD[0]; var m = arrD[1]; var d = arrD[2]; Config.selDate = new Date(y, m - 1, d); Config.hiddenCookieName = Config.hiddenCookieName.split('#')[0] + (index == 0 ? "" : "#" + data); Config.filterCookieName = Config.filterCookieName.split('#')[0] + (index == 0 ? "" : "#" + data); Config.isAllCookieName = Config.isAllCookieName.split('#')[0] + (index == 0 ? "" : "#" + data); Config.isAll = getCookie(Config.isAllCookieName); Config.isAll = Config.isAll == null ? 0 : Config.isAll; Config.isSimple = 1; isChangePage = true;//选日期筛选切回精简。 writeCookie("win007Odds_changePage", isChangePage); LoadData(); } function setMatchTime() { var matchItem, goTime; for (var j = 0; j < matchdata.MatchNum; j++) { try { matchItem = matchdata.MatchList.items[j]; if (matchItem.state == "1") { //part 1 goTime = Math.floor((new Date() - matchItem.time2 - difftime) / 60000); if (goTime > 45) goTime = "45+"; if (goTime < 1) goTime = "1"; document.getElementById("time_" + matchItem.mId).innerHTML = goTime + ""; } if (matchItem.state == "3") { //part 2 goTime = Math.floor((new Date() - matchItem.time2 - difftime) / 60000) + 46; if (goTime > 90) goTime = "90+"; if (goTime < 46) goTime = "46"; document.getElementById("time_" + matchItem.mId).innerHTML = goTime + ""; } } catch (e) { } } runtimeTimer = window.setTimeout("setMatchTime()", 30000); } var showSort = false; function changeSort() { Config.rank = Config.rank == 0 ? 1 : 0; Config.writeCookie(); makeTable(1); // setSortShowOrHidden(); } function setSound() { Config.soundCheck = Config.soundCheck == 0 ? 1 : 0; Config.writeCookie(); } function setSortShowOrHidden() { for (var j = 0; j < matchdata.MatchNum; j++) { matchItem = matchdata.MatchList.items[j]; var obj = document.getElementById("ht_" + matchItem.mId); if (obj != null) { document.getElementById("ht_" + matchItem.mId).style.display = (Config.rank == 1 ? "" : "none"); document.getElementById("gt_" + matchItem.mId).style.display = (Config.rank == 1 ? "" : "none"); } } } function getPageStr(total, page) { var str = ''; str = '
'; str += '
    '; str += '
    [ 当前第 ' + page + ' 页,共' + total + ' ]页
    '; for (var i = 1; i <= total; i++) { str += '' + i + ''; } str += '
'; return str; } function changeDivRight() { var el = document.getElementById("fixedBox"); el.style.right = (document.body.clientWidth - 950) / 2 - 40 - 15 + "px"; } function getWeight(matchItem) { var state = parseInt(matchItem.state); var ss = state > 0 ? 1 : state; if (ss >= 0 || ss == -1) ss = ss + 50; else { ss = 40;// -10~-14 sort by time } var monthStr = matchItem.time.getMonth().toString(); var dayStr = matchItem.time.getDay().toString(); var hoursStr = matchItem.time.getHours().toString(); var minutesStr = matchItem.time.getMinutes().toString(); if (dayStr.length == 1) dayStr = "0" + dayStr; if (monthStr.length == 1) monthStr = "0" + monthStr; if (hoursStr.length == 1) hoursStr = "0" + hoursStr; if (minutesStr.length == 1) minutesStr = "0" + minutesStr; var yearInt = new Date().getFullYear() - matchItem.time.getFullYear(); var matchTime = yearInt + monthStr + dayStr + hoursStr + minutesStr; return parseFloat(ss + (99999999 - parseInt(matchTime) + "." + (1000 - matchItem.oddsIndex))); } function MovePlace(newPos, oldPos, isadd) { try { if (newPos == 0) document.getElementById("odds").insertAdjacentElement(isadd ? "afterBegin" : "BeforeEnd", document.getElementById("table_" + oldPos)); else document.getElementById("table_" + newPos).insertAdjacentElement(isadd ? "afterEnd" : "BeforeBegin", document.getElementById("table_" + oldPos)); } catch (e) { } } function addConcern(matchID, obj) { //var cCount = document.getElementById("concernCount").innerHTML; if (concernId.indexOf("_" + matchID + "_") == -1) concernId += matchID + "_"; else return; writeCookie("Bet007Odds_concernId", concernId); // cCount++; //var tr = document.getElementById("tr1_" + A[matchIndex][0]); obj.parentNode.innerHTML = obj.parentNode.innerHTML.replace("addConcern", "deleteConcern").replace("btn top", "btn top on").replace("添加", "取消"); var matchItem = matchdata.MatchList.Get(matchID); var weight = getWeight(matchItem); var isChange = false; for (var i = 0; i < matchdata.MatchNum; i++) { var matchItem2 = matchdata.MatchList.items[i]; if (concernId.indexOf("_" + matchItem2.mId + "_") != -1) { if (getWeight(matchItem2) > weight) { isChange = true; MovePlace(matchItem2.mId, matchItem.mId, true); break; } } } if (!isChange) { var arrs = concernId.substr(0, concernId.length - 1).split('-'); MovePlace(arrs.length > 1 ? arrs[arrs.length - 1] : 0, matchItem.mId, true); } //document.getElementById("concernCount").innerHTML = cCount; } function deleteConcern(matchId, obj) { if (concernId.indexOf("_" + matchId + "_") == -1) return; // var tr = document.getElementById("tr1_" + A[matchIndex][0]); obj.parentNode.innerHTML = obj.parentNode.innerHTML.replace("deleteConcern", "addConcern").replace("btn top on", "btn top").replace("取消", "添加"); var isChange = false; var lastmId = matchdata.MatchList.items[0].mId; var lastWeight = 0; var matchItem = matchdata.MatchList.Get(matchId); var curWeight = getWeight(matchItem); for (var i = 0; i < matchdata.MatchNum; i++) { var matchItem2 = matchdata.MatchList.items[i]; if (concernId.indexOf("_" + matchItem2.mId + "_") == -1 && hiddenID.indexOf("_" + matchItem2.mId + "_") == -1) { var weight = getWeight(matchItem2); if (weight < curWeight && (weight > lastWeight || lastWeight == 0)) { isChange = true; lastWeight = weight; lastmId = matchItem2.mId; } //if (weight2 < weight) { // isChange = true; // MovePlace(matchItem2.mId, matchItem.mId, false); // break; //} } } if (!isChange) MovePlace(0, matchItem.mId, false); else MovePlace(lastmId, matchItem.mId, false); concernId = concernId.replace("_" + matchId + "_", "_"); //var cCount = document.getElementById("concernCount").innerHTML; writeCookie("Bet007Odds_concernId", concernId); //cCount--; //document.getElementById("concernCount").innerHTML = cCount; } function SortData() { temp = new Array(); var j = 0; temp[0] = ","; var tempCount = matchDomain.length; for (var i = 0; i < tempCount; i++) { if (concernId.indexOf("_" + matchDomain[i].split(_glodds.SplitColumn)[0] + "_") != -1) { temp[j] = matchDomain[i]; matchDomain.splice(i, 1); tempCount--; i--; j++; } } if (temp.length > 0 && temp[0].length > 1) { //document.getElementById("concernCount").innerHTML = temp.length - 1; matchDomain = temp.concat(matchDomain); } } function showCloseCompany() { if (typeof (closeCompanyText) != "undefined" && closeCompanyText != "") { var div = document.getElementById("divCloseCompany"); div.style.display = ""; div.innerHTML = closeCompanyText; } } function checkCompany(obj) {// var inputObj = obj.getElementsByTagName("input")[0]; var num = 0; var IDName = isOld ? "mycompany" : "companyList"; var inputs = document.getElementById(IDName).getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox" && inputs[i].checked) num++; } if (num > 5) { alert("最多只能" + (Config.language == 0 ? "选" : "選") + "五家公司!" + (Config.language == 0 ? "请重新选择!" : "請重新選擇!")); inputObj.checked = false; } //else if (num < 1) { // alert("最少要" + (Config.language == 0 ? "选" : "選") + "一家公司!" + (Config.language == 0 ? "请重新选择!" : "請重新選擇!")); // inputObj.checked = true; //} } String.prototype.Trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); } //条件筛选 function writeConditionCookie(kind, oddsType, idList) { writeCookie(Config.filterCookieName, kind + "^" + oddsType + "^" + idList); } function getConditonList(kind) {//获取筛选COOKIE。用户没选择时默认赛事精简 var arr = new Array(3); var Fs007Filter = getCookie(Config.filterCookieName); Fs007Filter = Fs007Filter == null ? '' : Fs007Filter; if (Fs007Filter != "") { var arrFilter = Fs007Filter.split("^"); if (parseInt(arrFilter[0]) == kind) arr = arrFilter; else { arr[0] = 0; arr[1] = kind == 3 ? '0' : ''; arr[2] = ''; } } else {//默认赛事精简 arr[0] = 0; arr[1] = ''; arr[2] = ''; } return arr; } var hsCondition = new Hashtable2();//条件筛选数据 var conditionHttp = zXmlHttp.createRequest(); function getCondition() { conditionHttp.open("get", "xml/condition.txt?r=007" + Date.parse(new Date()), false); conditionHttp.send(null); var content = conditionHttp.responseText; var arrOne = content.split('!'); for (var i = 0; i < arrOne.length; i++) { var arrTwo = arrOne[i].split('^'); for (var j = 0; j < arrTwo.length; j++) { hsCondition.add(i + "_" + j, arrTwo[j]); } } makeCondition(); } var oldConditionID = ""; function makeCondition() { var titleCn = new Array("连胜场次", "连负场次", "连续赢盘", "连续输盘", "连续大球", "连续小球", "近20场赢盘率", "近20场输盘率", "近20场大球率", "近20场小球率"); var titleBig = new Array("連勝場次", "連負場次", "連續贏盤", "連續輸盤", "連續大球", "連續小球", "近20場贏盤率", "近20場輸盤率", "近20場大球率", "近20場小球率"); var numTtitle = new Array("3~4", "5~6", "7+"); var perTitle = new Array("60~65", "65~70", "75+"); var title = Config.language == 1 ? titleBig : titleCn; var arrFilter = getConditonList(2); var choiseNum = 0; var conditionHtml = "", actionStr = ''; for (var i = 0; i < title.length; i++) { var subTitle = i < 6 ? numTtitle : perTitle; conditionHtml += '
'; conditionHtml += '' + title[i] + ''; for (var j = 0; j < subTitle.length; j++) { var className = "btn off"; actionStr = ''; var id = i + "_" + j; var idList = hsCondition.items(id); if (idList.Trim().length > 3) { actionStr = 'onclick="selectConditon(\'' + id + '\')"'; if (arrFilter[2] != "" && arrFilter[2] == id) { className = "btn on"; choiseNum += idList.split(',').length; oldConditionID = id;//记录用户条件筛选的旧选择 } else className = "btn"; } conditionHtml += '' + subTitle[j] + ''; } conditionHtml += '
'; } document.getElementById("filterList").innerHTML = conditionHtml; document.getElementById("conditionNum").innerHTML = "[" + choiseNum + "]"; MM_showHideLayers('filterBox', '', 'show'); } function selectConditon(id) { if (oldConditionID != "" && oldConditionID != id) document.getElementById("condition_" + oldConditionID).className = "btn"; document.getElementById("condition_" + id).className = "btn on"; setFilterNum("conditionNum", hsCondition.items(id).split(',').length); oldConditionID = id; } var isOld = location.href.toLowerCase().indexOf("oldodds") != -1; function hiddenCondiotnData() { hiddenID = "_"; var sidList = hsCondition.items(oldConditionID); for (var j = 0; j < matchdata.MatchNum; j++) { matchItem = matchdata.MatchList.items[j]; var display = ""; if (sidList.indexOf(matchItem.mId) == -1) { hiddenID += matchItem.mId + "_"; if (isOld) { document.getElementById("tr_" + matchItem.mId).style.display = "none"; } } else if (isOld) { document.getElementById("tr_" + matchItem.mId).style.display = ""; } //document.getElementById("tr1_" + A[i][0]).style.display = display; //if (A[i][42] + A[i][30] != "") document.getElementById("tr2_" + A[i][0]).style.display = display; //if (isHomeIndex && parseInt(flashScheduleIDs) == A[i][0]) // document.getElementById("tr3_" + A[i][0]).style.display = display; } //去除精简默认选择 Config.isSimple = 0; Config.writeCookie(); writeCookie(Config.hiddenCookieName, hiddenID); if (!isOld) makeTable(1); //保存用户条件筛选项 writeConditionCookie(2, '', oldConditionID); changeLeagueState(); } function setFilterNum(id, num) { var obj = document.getElementById(id); obj.innerHTML = "[" + num + "]"; obj.className = obj.className == "flash" ? "flash2" : "flash"; } function getOddsLengthStyle(scheduleID) { var sclassName = ""; //if (soccer_scheduleid.indexOf(scheduleID) != -1 && Ba_Soccer.indexOf(scheduleID) != -1) // sclassName = " sevenbtn"; if (Ba_Soccer.indexOf(scheduleID) != -1)//soccer_scheduleid.indexOf(scheduleID) != -1 || sclassName = " sixbtn"; return sclassName; } function analysis2(ID) { var theURL = 'http://zq.win007.com/analysis/' + ID + (Config.language == 0 ? "cn" : "") + '.htm'; window.open(theURL, '', ''); }