Revision 903,
336 bytes
checked in by niltonneto, 15 years ago
(diff) |
Importacao inicial do Expresso do Serpro
|
Rev | Line | |
---|
[903] | 1 | function toggleTableVisibility(tableID) |
---|
| 2 | { |
---|
| 3 | var rows = document.getElementById(tableID).rows; |
---|
| 4 | var visibility = (rows[1].style.display == '') ? 'none' : ''; |
---|
| 5 | for (var i = 1; i < rows.length; i++) |
---|
| 6 | rows[i].style.display = visibility; |
---|
| 7 | document.getElementById('toggleLink').innerHTML = (visibility == 'none') ? 'Expandir' : 'Contrair'; |
---|
| 8 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.