File: bug90960.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (115 lines) | stat: -rw-r--r-- 3,095 bytes parent folder | download | duplicates (10)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>px-color</title>

<script type="text/javascript">

i=0;
showal=false;

function changeStyleA(){
        usecolor = (i%2)<1 ? "#f00" : "#00f";

        document.getElementById("extable").style.borderColor=usecolor;
        document.getElementById("extd").style.borderColor=usecolor;
        document.getElementById("exdiv").style.borderColor=usecolor;

        document.getElementById("pxtable").style.borderColor=usecolor;
        document.getElementById("pxtd").style.borderColor=usecolor;
        document.getElementById("pxdiv").style.borderColor=usecolor;

        document.getElementById("pttable").style.borderColor=usecolor;
        document.getElementById("pttd").style.borderColor=usecolor;
        document.getElementById("ptdiv").style.borderColor=usecolor;

        document.getElementById("emtable").style.borderColor=usecolor;
        document.getElementById("emtd").style.borderColor=usecolor;
        document.getElementById("emdiv").style.borderColor=usecolor;

        i++;

        if (showal) {
                alert("document.getElementById('pxtable').style.borderColor = "                                                 +document.getElementById("pxtable").style.borderColor);
        }

}


</script>

</head>
<body>
Change the border colors a few times, they all should change color<BR>
<p>

<table id="extable" style="border:1ex solid #0f0;">
        <tr>
                <td id="extd" style="border:1ex solid #0f0;">
This is a td with border:1ex solid #0f0; in a table with border:1ex solid #0f0;
                </td>
        </tr>
</table>

<p>

<div id="exdiv" style="border:1ex solid #0f0;">
this is a div with border:1ex solid #0f0;
</div>

<hr>

<table id="pxtable" style="border:10px solid #0f0;">
        <tr>
                <td id="pxtd" style="border:10px solid #0f0;">
This is a td with border:10px solid #0f0; in a table with border:10px solid #0f0;
                </td>
        </tr>
</table>

<p>

<div id="pxdiv" style="border:10px solid #0f0;">
this is a div with border:10px solid #0f0;
</div>

<hr>

<table id="pttable" style="border:10pt solid #0f0;">
        <tr>
                <td id="pttd" style="border:10pt solid #0f0;">
This is a td with border:10pt solid #0f0; in a table with border:10pt solid #0f0;
                </td>
        </tr>
</table>

<p>

<div id="ptdiv" style="border:10pt solid #0f0;">
this is a div with border:10pt solid #0f0;
</div>

<hr>

<table id="emtable" style="border:1em solid #0f0;">
        <tr>
                <td id="emtd" style="border:1em solid #0f0;">
This is a td with border:1em solid #0f0; in a table with border:1em solid #0f0;
                </td>
        </tr>
</table>

<p>

<div id="emdiv" style="border:1em solid #0f0;">
this is a div with border:1em solid #0f0;
</div>

<hr>
<p>
<a onClick="changeStyleA();">&gt;&gt;&gt;click here to change colors&lt;&lt;&lt;</a>
<a onClick="showal=!showal;">&gt;&gt;&gt;click here to (en|dis)able alert&lt;&lt;&lt;</a>

</body>
</html>