source: branches/version-2_4/html/user_data/packages/default/js/navi.js @ 18734

Revision 18734, 1.9 KB checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

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    var preLoadFlag = "false";
23
24    function preLoadImg(URL){
25
26        arrImgList = new Array (
27            URL+"img/header/basis_on.jpg",URL+"img/header/product_on.jpg",URL+"img/header/customer_on.jpg",URL+"img/header/order_on.jpg",
28            URL+"img/header/sales_on.jpg",URL+"img/header/mail_on.jpg",URL+"img/header/contents_on.jpg",
29            URL+"img/header/mainpage_on.gif",URL+"img/header/sitecheck_on.gif",URL+"img/header/logout.gif",
30            URL+"img/contents/btn_search_on.jpg",URL+"img/contents/btn_regist_on.jpg",
31            URL+"img/contents/btn_csv_on.jpg",URL+"img/contents/arrow_left.jpg",URL+"img/contents/arrow_right.jpg"
32        );
33        arrPreLoad = new Array();
34        for (i in arrImgList) {
35            arrPreLoad[i] = new Image();
36            arrPreLoad[i].src = arrImgList[i];
37        }
38        preLoadFlag = "true";
39    }
40
41    function chgImg(fileName,imgName){
42        if (preLoadFlag == "true") {
43            document.images[imgName].src = fileName;
44        }
45    }
46   
47    function chgImgImageSubmit(fileName,imgObj){
48    imgObj.src = fileName;
49    }
50   
51    // サブナビの表示切替
52    function naviStyleChange(ids, bcColor, color){
53        document.getElementById(ids).style.backgroundColor = bcColor;
54    }   
55
56
57   
Note: See TracBrowser for help on using the repository browser.