Code:
<script type="text/javascript">
if (document.getElementsByTagName) onload = function () {
var e, i = 0
while (e = document.getElementsByTagName ('TD')[i++]) {
e.parentNode.className = 'blurred'
e.onblur = function () {this.parentNode.className = 'blurred'}
e.onfocus = function () {this.parentNode.className = 'focused'}
}
}
</script>
<style type="text/css">
tr.blurred, tr.blurred th, tr.blurred td {
background-color:#aaa;
color:#555;
}
</style>
<table summary="">
<thead>
<tr>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
</tbody>
</table>
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks