码迷,mamicode.com
首页 > 其他好文 > 详细

代码分析

时间:2015-04-26 06:56:49      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

 

1. 滚球

<input type="radio" name="selectType" id="rb4" value="4" onclick="ShowMatchByMatchState(4)"><label for="rb4">滚球赛事</label>
 for (var i = 1; i <= matchcount; i++) {
   if (A[i][0] > 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")
  )) {
            document.getElementById("tr1_" + A[i][0]).style.display = "";
            if (Config.explain == 1 && A[i][42] + A[i][30] != "") document.getElementById("tr2_" + A[i][0]).style.display = "";
            hh = hh + 1;
            //hIds += "_" + A[i][0] + "_";
        }
    }

2. 开赛状态

<input type="radio" name="selectType" id="rb3" value="3" onclick="ShowMatchByMatchState(3)"><label for="rb3">未开场 </label>           
<input type="radio" name="selectType" id="rb2" value="2" onclick="ShowMatchByMatchState(2)"><label for="rb2">已完场 </label>
<input type="radio" name="selectType" id="rb1" value="1" onclick="ShowMatchByMatchState(1)"><label for="rb1">进行中</label>

3. 球队名

if (t == 1)
    return A[i][5 + lang]; //主队
else
    return A[i][8 + lang]; //客队

 

代码分析

标签:

原文地址:http://www.cnblogs.com/misspy/p/4457253.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!