找到最大的行号并实现公式

时间:2017-11-10 11:18:02

标签: javascript php jquery html

我有来自php的输出表。我的班级topCislo数量最多。并且结果的每两行实现公式中的最高数字。所有这些直到加载完整页面。

输出表:

                <table class="tabulka">
                  <tr class="timy">
                    <td class="box">
                      <div class="name"><a href="#" class="a-reset"><img alt="Barca" src="#" class="logo" title="Barca">Barca </a></div>
                    </td>
                    <td class="cislo"><a href="#" class="slabeCislo">1.08</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">1.12</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">1.07</a></td>
                    <td class="cislo"><a href="#" class="topCislo">8.50</a></td>
                    <td class="cislo"></td>
                    <td class="growcell"></td>
                  </tr>
                  <tr class="timy">
                    <td class="box">
                      <div class="name"><a href="#" class="a-reset"><img alt="rTE" src="#" class="logo" title="rTE">rTE </a></div>
                    </td>
                    <td class="cislo"><a href="#" class="slabeCislo">5.25</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">6.44</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">6.67</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">6.67</a></td>
                    <td class="cislo"><a href="#" class="topCislo">8.50</a></td>
                    <td class="cislo"><a href="#" class="slabeCislo">6.00</a></td>
                    <td class="cislo"></td>
                    <td class="cislo"><a href="#">4.96</a></td>
                    <td class="cislo"></td>
                    <td class="growcell"></td>
                  </tr>
                </table>
                <table class="tabulka">
                  <tr class="timy">
                    <td class="box">
                      <div class="name"><a href="#" class="a-reset"><img alt="Sami" src="#" class="logo" title="Sami">Sami </a></div>
                    </td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"><a href="#" class="topCislo">7.76</a></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="growcell"></td>
                  </tr>
                  <tr class="timy">
                    <td class="box">
                      <div class="name"><a href="#" class="a-reset"><img alt="eSuba" src="#" class="logo" title="eSuba">eSuba </a></div>
                    </td>
                    <td class="cislo"></td>
                    <td class="cislo"><a href="#" class="slabeCislo">1.05</a></td>
                    <td class="cislo"><a href="#" class="topCislo">1.33</a></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="cislo"></td>
                    <td class="growcell"></td>
                  </tr>
                </table>

每两行1公式(2行= 1表)。对于每个我需要公式结果的表格,只会显示公式的结果,不再进行任何操作。

类topCislo(行中的最大数字)是href。

式: ((((topCislo1 / (topCislo1 + topCislo2)) * topCislo2) + ((topCislo2 / (topCislo2 + topCislo1)) * topCislo1)) / 2)

请帮帮我?

0 个答案:

没有答案