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

Revision 1328, 3.3 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    }
25
26//WIN-NN
27    if (gCssUA.indexOf("WIN") != -1 && gCssBrw.indexOf("NETSCAPE") != -1) {
28        write(".fs10 {font-size:72%; line-height:130%;}");
29        write(".fs12 {font-size: 75%; line-height: 150%;}");
30        write(".fs14 {font-size: 87.5%; line-height: 140%;}");
31        write(".fs18 {font-size: 117.5%; line-height: 130%;}");
32        write(".fs22 {font-size: 137.5%; line-height: 130%;}");
33        write(".fs24 {font-size: 150%; line-height: 130%;}");
34        write(".fs30 {font-size: 187.5%; line-height: 120%;}");
35        write(".fs10n {font-size:72%;}");
36        write(".fs12n {font-size: 75%;}");
37        write(".fs14n {font-size: 87.5%;}");
38        write(".fs18n {font-size: 117.5%;}");
39        write(".fs22n {font-size: 137.5%;}");
40        write(".fs24n {font-size: 150%;}");
41        write(".fs30n {font-size: 187.5%;}");
42    }
43
44//WIN-NN4.x
45    if ( navigator.appName == "Netscape" && navigator.appVersion.substr(0,2) == "4." ) {
46        write(".fs10 {font-size:90%; line-height: 130%;}");
47        write(".fs12 {font-size: 100%; line-height: 140%;}");
48        write(".fs14 {font-size: 110%; line-height: 135%;}");
49        write(".fs18 {font-size: 130%; line-height: 175%;}");
50        write(".fs24 {font-size: 190%; line-height: 240%;}");
51        write(".fs30 {font-size: 240%; line-height: 285%;}");
52        write(".fs10n {font-size:90%;}");
53        write(".fs12n {font-size: 100%;}");
54        write(".fs14n {font-size: 110%;}");
55        write(".fs18n {font-size: 130%;}");
56        write(".fs24n {font-size: 190%;}");
57        write(".fs30n {font-size: 240%;}");
58    }
59
60//MAC
61    if (gCssUA.indexOf("MAC") != -1) {
62        write(".fs10 {font-size: 10px; line-height: 14px;}");
63        write(".fs12 {font-size: 12px; line-height: 18px;}");
64        write(".fs14 {font-size: 14px; line-height: 18px;}");
65        write(".fs18 {font-size: 18px; line-height: 23px;}");
66        write(".fs22 {font-size: 22px; line-height: 27px;}");
67        write(".fs24 {font-size: 24px; line-height: 30px;}");
68        write(".fs30 {font-size: 30px; line-height: 35px;}");
69        write(".fs10n {font-size: 10px;}");
70        write(".fs12n {font-size: 12px;}");
71        write(".fs14n {font-size: 14px;}");
72        write(".fs18n {font-size: 18px;}");
73        write(".fs22n {font-size: 22px;}");
74        write(".fs24n {font-size: 24px;}");
75        write(".fs30n {font-size: 30px;}");
76    }
77
78    write("--></style>");
79}
Note: See TracBrowser for help on using the repository browser.