now it actually works
[nyc.indymedia.org.git] / etc / producer / topiccount.template
1
2 <table id="topicCount" cellspacing="0">
3    <list topicCounts as tc>
4    <tr>
5       <td class="count"><p>${tc.count}</p></td>
6       <td class="topic"><p><a href="#">${tc.title}</a></p></td>
7    </tr>
8    </list>
9 </table>
10 <script language="JavaScript 1.2" type="text/javascript">
11 <!-- 
12
13    // apply css styles on <table> row mouseover
14    var rows = document.getElementById('topicCount').getElementsByTagName('tr');
15    var lngth = rows.length;
16    for ( i=0; i<lngth; i++ ) {
17       rows[i].onmouseover = function() {
18          this.className="mouseOn";
19       };
20       rows[i].onmouseout = function() {
21          this.className="mouseOff";
22       };
23    }
24
25 // -->
26 </script>