/[suikacvs]/markup/slide/implementation/xhtml2-winie.htc
Suika

Contents of /markup/slide/implementation/xhtml2-winie.htc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Nov 3 06:30:31 2003 UTC (21 years ago) by wakaba
Branch: MAIN
Experimental WinIE implementation

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    
22     <!-- h|nl -->
23     var el = element.getElementsByTagName ('nl');
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     el[i].style.listStyleType = 'disc';
29     }
30    
31     <!-- h|li -->
32     var el = element.getElementsByTagName ('li');
33     for (var i = 0; i < el.length; i++) {
34     el[i].style.display = 'list-item';
35     el[i].style.marginLeft = '1em';
36     }
37    
38     <!-- h|l -->
39     var el = element.getElementsByTagName ('l');
40     for (var i = 0; i < el.length; i++) {
41     el[i].style.display = 'block';
42     }
43    
44     </SCRIPT>
45     </PUBLIC:COMPONENT>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24