code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <style>
.row {
background-color: lightsteelblue;
cursor: default;
}
.rowHover {
background-color: steelblue;
cursor: pointer;
}
</style>
<table border="0">
<tr class="row" onMouseOver="this.className='rowHover'" onMouseOut="this.className='row'">
<td>blabla</td>
</tr>
<tr class="row" onMouseOver="this.className='rowHover'" onMouseOut="this.className='row'">
<td>bloebloe</td>
</tr>
<tr class="row" onMouseOver="this.className='rowHover'" onMouseOut="this.className='row'">
<td>bleble</td>
</tr>
</table> |
Dit gaat opzich goed, maar bij een brede tabel en veel rows gaat het wisselen van de classes enorm traag. Weet iemand een betere/snellere manier om dit te doen?