1 | /* |
---|
2 | * This file is part of EC-CUBE |
---|
3 | * |
---|
4 | * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. |
---|
5 | * |
---|
6 | * http://www.lockon.co.jp/ |
---|
7 | * |
---|
8 | * This program is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU General Public License |
---|
10 | * as published by the Free Software Foundation; either version 2 |
---|
11 | * of the License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * This program is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | * GNU General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this program; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
21 | */ |
---|
22 | gCssUA = navigator.userAgent.toUpperCase(); |
---|
23 | gCssBrw = navigator.appName.toUpperCase(); |
---|
24 | |
---|
25 | with (document) { |
---|
26 | write("<style type=\"text/css\"><!--"); |
---|
27 | |
---|
28 | //WIN-IE |
---|
29 | if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) { |
---|
30 | write(".fs10 {font-size: 62.5%; line-height: 150%; letter-spacing:1px;}"); |
---|
31 | write(".fs12 {font-size: 75%; line-height: 150%; letter-spacing:1.5px;}"); |
---|
32 | write(".fs14 {font-size: 87.5%; line-height: 150%; letter-spacing:2px;}"); |
---|
33 | write(".fs18 {font-size: 117.5%; line-height: 130%; letter-spacing:2.5px;}"); |
---|
34 | write(".fs22 {font-size: 137.5%; line-height: 130%; letter-spacing:3px;}"); |
---|
35 | write(".fs24 {font-size: 150%; line-height: 130%; letter-spacing:3px;}"); |
---|
36 | write(".fs30 {font-size: 187.5%; line-height: 125%; letter-spacing:3.5px;}"); |
---|
37 | write(".fs10n {font-size: 62.5%; letter-spacing:1px;}"); |
---|
38 | write(".fs12n {font-size: 75%; letter-spacing:1.5px;}"); |
---|
39 | write(".fs14n {font-size: 87.5%; letter-spacing:2px;}"); |
---|
40 | write(".fs18n {font-size: 117.5%; letter-spacing:2.5px;}"); |
---|
41 | write(".fs22n {font-size: 137.5%; letter-spacing:1px;}"); |
---|
42 | write(".fs24n {font-size: 150%; letter-spacing:1px;}"); |
---|
43 | write(".fs30n {font-size: 187.5%; letter-spacing:1px;}"); |
---|
44 | write(".fs12st {font-size: 75%; line-height: 150%; letter-spacing:1.5px; font-weight: bold;}"); |
---|
45 | } |
---|
46 | |
---|
47 | //WIN-NN |
---|
48 | if (gCssUA.indexOf("WIN") != -1 && gCssBrw.indexOf("NETSCAPE") != -1) { |
---|
49 | write(".fs10 {font-size:72%; line-height:130%;}"); |
---|
50 | write(".fs12 {font-size: 75%; line-height: 150%;}"); |
---|
51 | write(".fs14 {font-size: 87.5%; line-height: 140%;}"); |
---|
52 | write(".fs18 {font-size: 117.5%; line-height: 130%;}"); |
---|
53 | write(".fs22 {font-size: 137.5%; line-height: 130%;}"); |
---|
54 | write(".fs24 {font-size: 150%; line-height: 130%;}"); |
---|
55 | write(".fs30 {font-size: 187.5%; line-height: 120%;}"); |
---|
56 | write(".fs10n {font-size:72%;}"); |
---|
57 | write(".fs12n {font-size: 75%;}"); |
---|
58 | write(".fs14n {font-size: 87.5%;}"); |
---|
59 | write(".fs18n {font-size: 117.5%;}"); |
---|
60 | write(".fs22n {font-size: 137.5%;}"); |
---|
61 | write(".fs24n {font-size: 150%;}"); |
---|
62 | write(".fs30n {font-size: 187.5%;}"); |
---|
63 | write(".fs12st {font-size: 75%; line-height: 150%; font-weight: bold;}"); |
---|
64 | } |
---|
65 | |
---|
66 | //WIN-NN4.x |
---|
67 | if ( navigator.appName == "Netscape" && navigator.appVersion.substr(0,2) == "4." ) { |
---|
68 | write(".fs10 {font-size:90%; line-height: 130%;}"); |
---|
69 | write(".fs12 {font-size: 100%; line-height: 140%;}"); |
---|
70 | write(".fs14 {font-size: 110%; line-height: 135%;}"); |
---|
71 | write(".fs18 {font-size: 130%; line-height: 175%;}"); |
---|
72 | write(".fs24 {font-size: 190%; line-height: 240%;}"); |
---|
73 | write(".fs30 {font-size: 240%; line-height: 285%;}"); |
---|
74 | write(".fs10n {font-size:90%;}"); |
---|
75 | write(".fs12n {font-size: 100%;}"); |
---|
76 | write(".fs14n {font-size: 110%;}"); |
---|
77 | write(".fs18n {font-size: 130%;}"); |
---|
78 | write(".fs24n {font-size: 190%;}"); |
---|
79 | write(".fs30n {font-size: 240%;}"); |
---|
80 | write(".fs12st {font-size: 100%; line-height: 140%; font-weight: bold;}"); |
---|
81 | } |
---|
82 | |
---|
83 | //MAC |
---|
84 | if (gCssUA.indexOf("MAC") != -1) { |
---|
85 | write(".fs10 {font-size: 10px; line-height: 14px;}"); |
---|
86 | write(".fs12 {font-size: 12px; line-height: 18px;}"); |
---|
87 | write(".fs14 {font-size: 14px; line-height: 18px;}"); |
---|
88 | write(".fs18 {font-size: 18px; line-height: 23px;}"); |
---|
89 | write(".fs22 {font-size: 22px; line-height: 27px;}"); |
---|
90 | write(".fs24 {font-size: 24px; line-height: 30px;}"); |
---|
91 | write(".fs30 {font-size: 30px; line-height: 35px;}"); |
---|
92 | write(".fs10n {font-size: 10px;}"); |
---|
93 | write(".fs12n {font-size: 12px;}"); |
---|
94 | write(".fs14n {font-size: 14px;}"); |
---|
95 | write(".fs18n {font-size: 18px;}"); |
---|
96 | write(".fs22n {font-size: 22px;}"); |
---|
97 | write(".fs24n {font-size: 24px;}"); |
---|
98 | write(".fs30n {font-size: 30px;}"); |
---|
99 | write(".fs12st {font-size: 12px; line-height: 18px; font-weight: bold;}"); |
---|
100 | } |
---|
101 | |
---|
102 | write("--></style>"); |
---|
103 | } |
---|