1 |
wakaba |
1.1 |
<!-- HSML Implementation : XHTML 2 Stylesheet for WinIE -->
|
2 |
|
|
<PUBLIC:COMPONENT>
|
3 |
|
|
<SCRIPT LANGUAGE="JScript">
|
4 |
|
|
<!-- h|h -->
|
5 |
|
|
var el = element.getElementsByTagName ('h');
|
6 |
|
|
for (var i = 0; i < el.length; i++) {
|
7 |
|
|
el[i].style.display = 'block';
|
8 |
|
|
el[i].style.fontWeight = 'bolder';
|
9 |
|
|
el[i].style.marginBottom = '0.5em';
|
10 |
|
|
el[i].style.fontFamily = '"MS P Gothic", "Arial", sans-serif';
|
11 |
|
|
el[i].style.lineHeight = '1.1';
|
12 |
|
|
}
|
13 |
|
|
|
14 |
|
|
<!-- h|ul -->
|
15 |
|
|
var el = element.getElementsByTagName ('ul');
|
16 |
|
|
for (var i = 0; i < el.length; i++) {
|
17 |
|
|
el[i].style.display = 'block';
|
18 |
|
|
el[i].style.marginTop = '1em';
|
19 |
|
|
el[i].style.marginBottom = '1em';
|
20 |
|
|
}
|
21 |
wakaba |
1.2 |
|
22 |
|
|
<!-- h|ol -->
|
23 |
|
|
var el = element.getElementsByTagName ('ol');
|
24 |
|
|
for (var i = 0; i < el.length; i++) {
|
25 |
|
|
el[i].style.display = 'block';
|
26 |
|
|
el[i].style.marginTop = '1em';
|
27 |
|
|
el[i].style.marginBottom = '1em';
|
28 |
|
|
|
29 |
|
|
var li = el[i].childNodes;
|
30 |
|
|
for (var i = 0; i < li.length; i++) {
|
31 |
|
|
if (li[i].tagName == 'li') {
|
32 |
|
|
li[i].style.display = 'block';
|
33 |
|
|
li[i].style.listStyle = 'none';
|
34 |
|
|
li[i].style.textAlign = 'center';
|
35 |
|
|
|
36 |
|
|
if (i > 0) {
|
37 |
|
|
var beforeNode = element.document.createElement ('div');
|
38 |
|
|
beforeNode.appendChild (element.document.createTextNode ('↓'));
|
39 |
|
|
beforeNode.style.display = 'block';
|
40 |
|
|
beforeNode.style.textAlign = 'center';
|
41 |
|
|
|
42 |
|
|
if (li[i].childNodes.length) {
|
43 |
|
|
li[i].insertBefore (beforeNode, li[i].childNodes[0]);
|
44 |
|
|
} else {
|
45 |
|
|
li[i].appendChild (beforeNode);
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
wakaba |
1.1 |
|
52 |
|
|
<!-- h|nl -->
|
53 |
|
|
var el = element.getElementsByTagName ('nl');
|
54 |
|
|
for (var i = 0; i < el.length; i++) {
|
55 |
|
|
el[i].style.display = 'block';
|
56 |
|
|
el[i].style.marginTop = '1em';
|
57 |
|
|
el[i].style.marginBottom = '1em';
|
58 |
|
|
el[i].style.listStyleType = 'disc';
|
59 |
|
|
}
|
60 |
|
|
|
61 |
|
|
<!-- h|li -->
|
62 |
|
|
var el = element.getElementsByTagName ('li');
|
63 |
|
|
for (var i = 0; i < el.length; i++) {
|
64 |
|
|
el[i].style.display = 'list-item';
|
65 |
|
|
el[i].style.marginLeft = '1em';
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
<!-- h|l -->
|
69 |
|
|
var el = element.getElementsByTagName ('l');
|
70 |
|
|
for (var i = 0; i < el.length; i++) {
|
71 |
|
|
el[i].style.display = 'block';
|
72 |
wakaba |
1.2 |
}
|
73 |
|
|
|
74 |
|
|
<!-- h|table -->
|
75 |
|
|
var el = element.getElementsByTagName ('table');
|
76 |
|
|
for (var i = 0; i < el.length; i++) {
|
77 |
|
|
el[i].style.display = 'block';
|
78 |
|
|
el[i].style.textAlign = 'center';
|
79 |
|
|
}
|
80 |
|
|
|
81 |
|
|
<!-- h|tbody -->
|
82 |
|
|
var el = element.getElementsByTagName ('tbody');
|
83 |
|
|
for (var i = 0; i < el.length; i++) {
|
84 |
|
|
el[i].style.display = 'block';
|
85 |
|
|
}
|
86 |
|
|
|
87 |
|
|
<!-- h|tr -->
|
88 |
|
|
var el = element.getElementsByTagName ('tr');
|
89 |
|
|
for (var i = 0; i < el.length; i++) {
|
90 |
|
|
el[i].style.display = 'block';
|
91 |
|
|
}
|
92 |
|
|
|
93 |
|
|
<!-- h|th -->
|
94 |
|
|
var el = element.getElementsByTagName ('td');
|
95 |
|
|
for (var i = 0; i < el.length; i++) {
|
96 |
|
|
el[i].style.display = 'inline-block';
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
<!-- h|td -->
|
100 |
|
|
var el = element.getElementsByTagName ('td');
|
101 |
|
|
for (var i = 0; i < el.length; i++) {
|
102 |
|
|
el[i].style.display = 'inline-block';
|
103 |
wakaba |
1.1 |
}
|
104 |
|
|
|
105 |
|
|
</SCRIPT>
|
106 |
|
|
</PUBLIC:COMPONENT>
|