blob: 83b4c434059a789ad05ef773a226521ef53106df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>testcase</title>
<style>
.tt {
border-collapse: collapse;
}
.nix {
display: none;
}
.ref {
border: solid 3px darkred;
}
td {
width: 20px;
height: 20px;
}
</style>
<script>
function test ()
{
document.getElementById ("2").className = "nix";
document.getElementById ("3").className = "ref";
}
</script>
</head>
<body onload="test()">
<table class="tt">
<tr id="1"><td > </td></tr>
<tr id="2"><td > </td></tr>
<tr id="3"><td > </td></tr>
<tr><td> </td></tr>
</table>
</body>
</html>
|