// 左边标题 function LoadTitleLeft() { var titleLeftHtml = "
"; //图片 titleLeftHtml += arrLeague[4] + " " + arrLeague[lang + 1] + " 射手榜 "; //标题 document.getElementById("TitleLeft").innerHTML = titleLeftHtml; } //右边标题赛季选择 function titleRightSeason() { var seasonSel = document.getElementById("seasonList"); for (var i = 0; i < arrSeason.length; i++) { seasonSel.options.add(new Option(arrSeason[i], arrSeason[i])); if (arrSeason[i] == selectSeason) { seasonSel.selectedIndex = i; } } } //右边标题球队选择 function titleRightTeam() { var dropTeam = document.getElementById("dropTeam"); dropTeam.options.add(new Option("总轮次", "0")); for (var i = 1; i <= arrLeague[11]; i++) { dropTeam.options.add(new Option("第" + i + "轮", "" + i)); } dropTeam.selectedIndex = selectRound; for (var i = 0; i < arrTeam.length; i++) { teamHelper["T_" + arrTeam[i][0]] = arrTeam[i]; } } //选择不同的数据显示不同的数据 function SelectScore(point) { //去除颜色 for (var i = 1; i <= 3; i++) { var menu = document.getElementById("menu" + i); if (point == i) { if (menu.className) menu.className = "nav_selected"; else menu.setAttribute("class", "nav_selected"); } else { if (menu.className) menu.className = "nav_unselected"; else menu.setAttribute("class", "nav_unselected"); } } switch (point) { case 1: showData(arrTotalData); break; case 2: showData(arrHomeData); break; case 3: showData(arrGuestData); break; } } //数据显示 function showData(selectPanLu) { function DefaultStr(firstStr, secondStr) { var reStr = "-"; if (!!firstStr && firstStr != 0) { reStr = firstStr; if (secondStr != null && typeof (secondStr) != 'undefined' && secondStr != '') { reStr += "(" + secondStr + ")"; } } return reStr; } var dataDiv = document.getElementById("tableId"); var arrDiv = new Array(); arrDiv.push("排名 | 球员 | 球队 | 出场次数(时间) | 首发次数(替补) | 射门(射正) | 总进球(点球) | 主场 | 客场 | 详情 |
" + panLu[0] + " | " + panLu[2 + lang] + " | " + showScoreTeam(panLu[8]) + " | " + DefaultStr(panLu[13], panLu[14]) + " | " + DefaultStr(panLu[15], parseInt(panLu[13]) - parseInt(panLu[15])) + " | " + DefaultStr(panLu[16], panLu[17]) + " | " + panLu[9] + (parseInt(panLu[12]) > 0 ? "(" + panLu[12] + ")" : "") + " | " + panLu[10] + " | " + panLu[11] + " | 详细 |
赛事时间 | 轮次 | 主/客 | 赛况 | 对手 | 赛果 | 进球(时间) | 射门(射正) | 上场时间 | 首发 | 评分 |
" + oneRecore[0] + " | " + oneRecore[1] + " | " + oneRecore[2] + " | " + oneRecore[3] + " | " + teamHelper["T_" + oneRecore[4]][1 + lang] + " | " + oneRecore[5] + ":" + oneRecore[6] + "(" + oneRecore[7] + ":" + oneRecore[8] + ")" + " | " + oneRecore[10].length + "(" + oneRecore[10].join(',') + ")" + " | " + oneRecore[13] + "(" + oneRecore[14] + ") | " + oneRecore[11] + "分钟" + " | " + (oneRecore[12] == 1 ? "" : "") + " | " + oneRecore[15] + " |