source: branches/version-2_5-dev/html/js/css.js @ 20116

Revision 20116, 4.4 KB checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
Line 
1/*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2010 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();
23gCssBrw = navigator.appName.toUpperCase();
24
25with (document) {
26        write("<style type=\"text/css\"><!--");
27
28
29//WIN-IE
30    if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) {
31        write(".fs10 {font-size: 62.5%; line-height: 150%; letter-spacing:1px;}");
32        write(".fs12 {font-size: 75%; line-height: 150%; letter-spacing:1.5px;}");
33        write(".fs14 {font-size: 87.5%; line-height: 150%; letter-spacing:2px;}");
34        write(".fs18 {font-size: 117.5%; line-height: 130%; letter-spacing:2.5px;}");
35        write(".fs22 {font-size: 137.5%; line-height: 130%; letter-spacing:3px;}");
36        write(".fs24 {font-size: 150%; line-height: 130%; letter-spacing:3px;}");
37        write(".fs30 {font-size: 187.5%; line-height: 125%; letter-spacing:3.5px;}");
38        write(".fs10n {font-size: 62.5%; letter-spacing:1px;}");
39        write(".fs12n {font-size: 75%; letter-spacing:1.5px;}");
40        write(".fs14n {font-size: 87.5%; letter-spacing:2px;}");
41        write(".fs18n {font-size: 117.5%; letter-spacing:2.5px;}");
42        write(".fs22n {font-size: 137.5%; letter-spacing:1px;}");
43        write(".fs24n {font-size: 150%; letter-spacing:1px;}");
44        write(".fs30n {font-size: 187.5%; letter-spacing:1px;}");
45        write(".fs12st {font-size: 75%; line-height: 150%; letter-spacing:1.5px; font-weight: bold;}");
46    }
47
48//WIN-NN
49    if (gCssUA.indexOf("WIN") != -1 && gCssBrw.indexOf("NETSCAPE") != -1) {
50        write(".fs10 {font-size:72%; line-height:130%;}");
51        write(".fs12 {font-size: 75%; line-height: 150%;}");
52        write(".fs14 {font-size: 87.5%; line-height: 140%;}");
53        write(".fs18 {font-size: 117.5%; line-height: 130%;}");
54        write(".fs22 {font-size: 137.5%; line-height: 130%;}");
55        write(".fs24 {font-size: 150%; line-height: 130%;}");
56        write(".fs30 {font-size: 187.5%; line-height: 120%;}");
57        write(".fs10n {font-size:72%;}");
58        write(".fs12n {font-size: 75%;}");
59        write(".fs14n {font-size: 87.5%;}");
60        write(".fs18n {font-size: 117.5%;}");
61        write(".fs22n {font-size: 137.5%;}");
62        write(".fs24n {font-size: 150%;}");
63        write(".fs30n {font-size: 187.5%;}");
64        write(".fs12st {font-size: 75%; line-height: 150%; font-weight: bold;}");
65    }
66
67//WIN-NN4.x
68    if ( navigator.appName == "Netscape" && navigator.appVersion.substr(0,2) == "4." ) {
69        write(".fs10 {font-size:90%; line-height: 130%;}");
70        write(".fs12 {font-size: 100%; line-height: 140%;}");
71        write(".fs14 {font-size: 110%; line-height: 135%;}");
72        write(".fs18 {font-size: 130%; line-height: 175%;}");
73        write(".fs24 {font-size: 190%; line-height: 240%;}");
74        write(".fs30 {font-size: 240%; line-height: 285%;}");
75        write(".fs10n {font-size:90%;}");
76        write(".fs12n {font-size: 100%;}");
77        write(".fs14n {font-size: 110%;}");
78        write(".fs18n {font-size: 130%;}");
79        write(".fs24n {font-size: 190%;}");
80        write(".fs30n {font-size: 240%;}");
81        write(".fs12st {font-size: 100%; line-height: 140%; font-weight: bold;}");
82    }
83
84//MAC
85    if (gCssUA.indexOf("MAC") != -1) {
86        write(".fs10 {font-size: 10px; line-height: 14px;}");
87        write(".fs12 {font-size: 12px; line-height: 18px;}");
88        write(".fs14 {font-size: 14px; line-height: 18px;}");
89        write(".fs18 {font-size: 18px; line-height: 23px;}");
90        write(".fs22 {font-size: 22px; line-height: 27px;}");
91        write(".fs24 {font-size: 24px; line-height: 30px;}");
92        write(".fs30 {font-size: 30px; line-height: 35px;}");
93        write(".fs10n {font-size: 10px;}");
94        write(".fs12n {font-size: 12px;}");
95        write(".fs14n {font-size: 14px;}");
96        write(".fs18n {font-size: 18px;}");
97        write(".fs22n {font-size: 22px;}");
98        write(".fs24n {font-size: 24px;}");
99        write(".fs30n {font-size: 30px;}");
100        write(".fs12st {font-size: 12px; line-height: 18px; font-weight: bold;}");
101    }
102
103    write("--></style>");
104}
Note: See TracBrowser for help on using the repository browser.