source: temp/trunk/html/js/css.js @ 1328

Revision 1328, 3.6 KB checked in by naka, 20 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1gCssUA = navigator.userAgent.toUpperCase();
2gCssBrw = navigator.appName.toUpperCase();
3
4with (document) {
5        write("<style type=\"text/css\"><!--");
6
7
8//WIN-IE
9    if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) {
10        write(".fs10 {font-size: 62.5%; line-height: 150%; letter-spacing:1px;}");
11        write(".fs12 {font-size: 75%; line-height: 150%; letter-spacing:1.5px;}");
12        write(".fs14 {font-size: 87.5%; line-height: 150%; letter-spacing:2px;}");
13        write(".fs18 {font-size: 117.5%; line-height: 130%; letter-spacing:2.5px;}");
14        write(".fs22 {font-size: 137.5%; line-height: 130%; letter-spacing:3px;}");
15        write(".fs24 {font-size: 150%; line-height: 130%; letter-spacing:3px;}");
16        write(".fs30 {font-size: 187.5%; line-height: 125%; letter-spacing:3.5px;}");
17        write(".fs10n {font-size: 62.5%; letter-spacing:1px;}");
18        write(".fs12n {font-size: 75%; letter-spacing:1.5px;}");
19        write(".fs14n {font-size: 87.5%; letter-spacing:2px;}");
20        write(".fs18n {font-size: 117.5%; letter-spacing:2.5px;}");
21        write(".fs22n {font-size: 137.5%; letter-spacing:1px;}");
22        write(".fs24n {font-size: 150%; letter-spacing:1px;}");
23        write(".fs30n {font-size: 187.5%; letter-spacing:1px;}");
24        write(".fs12st {font-size: 75%; line-height: 150%; letter-spacing:1.5px; font-weight: bold;}");
25    }
26
27//WIN-NN
28    if (gCssUA.indexOf("WIN") != -1 && gCssBrw.indexOf("NETSCAPE") != -1) {
29        write(".fs10 {font-size:72%; line-height:130%;}");
30        write(".fs12 {font-size: 75%; line-height: 150%;}");
31        write(".fs14 {font-size: 87.5%; line-height: 140%;}");
32        write(".fs18 {font-size: 117.5%; line-height: 130%;}");
33        write(".fs22 {font-size: 137.5%; line-height: 130%;}");
34        write(".fs24 {font-size: 150%; line-height: 130%;}");
35        write(".fs30 {font-size: 187.5%; line-height: 120%;}");
36        write(".fs10n {font-size:72%;}");
37        write(".fs12n {font-size: 75%;}");
38        write(".fs14n {font-size: 87.5%;}");
39        write(".fs18n {font-size: 117.5%;}");
40        write(".fs22n {font-size: 137.5%;}");
41        write(".fs24n {font-size: 150%;}");
42        write(".fs30n {font-size: 187.5%;}");
43        write(".fs12st {font-size: 75%; line-height: 150%; font-weight: bold;}");
44    }
45
46//WIN-NN4.x
47    if ( navigator.appName == "Netscape" && navigator.appVersion.substr(0,2) == "4." ) {
48        write(".fs10 {font-size:90%; line-height: 130%;}");
49        write(".fs12 {font-size: 100%; line-height: 140%;}");
50        write(".fs14 {font-size: 110%; line-height: 135%;}");
51        write(".fs18 {font-size: 130%; line-height: 175%;}");
52        write(".fs24 {font-size: 190%; line-height: 240%;}");
53        write(".fs30 {font-size: 240%; line-height: 285%;}");
54        write(".fs10n {font-size:90%;}");
55        write(".fs12n {font-size: 100%;}");
56        write(".fs14n {font-size: 110%;}");
57        write(".fs18n {font-size: 130%;}");
58        write(".fs24n {font-size: 190%;}");
59        write(".fs30n {font-size: 240%;}");
60        write(".fs12st {font-size: 100%; line-height: 140%; font-weight: bold;}");
61    }
62
63//MAC
64    if (gCssUA.indexOf("MAC") != -1) {
65        write(".fs10 {font-size: 10px; line-height: 14px;}");
66        write(".fs12 {font-size: 12px; line-height: 18px;}");
67        write(".fs14 {font-size: 14px; line-height: 18px;}");
68        write(".fs18 {font-size: 18px; line-height: 23px;}");
69        write(".fs22 {font-size: 22px; line-height: 27px;}");
70        write(".fs24 {font-size: 24px; line-height: 30px;}");
71        write(".fs30 {font-size: 30px; line-height: 35px;}");
72        write(".fs10n {font-size: 10px;}");
73        write(".fs12n {font-size: 12px;}");
74        write(".fs14n {font-size: 14px;}");
75        write(".fs18n {font-size: 18px;}");
76        write(".fs22n {font-size: 22px;}");
77        write(".fs24n {font-size: 24px;}");
78        write(".fs30n {font-size: 30px;}");
79        write(".fs12st {font-size: 12px; line-height: 18px; font-weight: bold;}");
80    }
81
82    write("--></style>");
83}
Note: See TracBrowser for help on using the repository browser.