// 左边标题 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() { 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) { var dataDiv = document.getElementById("tableId"); var arrDiv = new Array(); arrDiv.push("排名 | 球员 | 国籍 | 球队 | 总进球(点球) | 主场 | 客场 | 详情 |
" + panLu[0] + " | " + panLu[2 + lang] + " | " + panLu[5 + lang] + " | " + showScoreTeam(panLu[8]) + " | " + 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(',') + ")" + " |