KOD:
<script type="text/javascript"> function Pokaz(secNum){ secNum = document.getElementById(secNum); if(secNum.style.display=="none"){ secNum.style.display="block"; } else { secNum.style.display="none"; } } function odswiez() { window.location.reload(); } </script> <table rules="all" style="border: 1px solid #444444;line-height: 20px;" class="tabelka" width="100%" align="center"> <tr> <td style="width: 20px;">#.</td> <td><b>Klub</b></td> <td style="width: 25px;" class="center">M</td> <td style="width: 25px;" class="center">Z</th> <td style="width: 25px;" class="center">R</th> <td style="width: 25px;" class="center">P</th> <td class="center" style="width: 25px;">B</th> <td style="width: 75px;" class="center">m.pkt</th> <th>bilans</th><th class="liga">pkt</th> </tr> <tr class="lider" id="team[9]a"> <td>1.</td> <td><a href="#" onclick="Pokaz('team[9]b')">Klub</a></td><td class="center">3</td><td class="center">3</td><td class="center">0</td><td class="center">0</td><td class="center">0</td><td class="center">180 - 90</td><td class="center">+90</td><td class="center">6</td></tr> <tr id="team[9]b" style="display:none;"><td colspan="10">Klub</td></tr> </table>
Można przetestować np w edytorze: http://www.w3schools.com/js/tryit.asp?filename=tryjs_text