source: tmp/version-2_5-test/html/user_data/packages/default/js/navi.js @ 18609

Revision 18609, 1.6 KB checked in by kajiwara, 14 years ago (diff)

正式版にナイトリービルド版をマージしてみるテスト

Line 
1/*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2007 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 */
22var preLoadFlag = "false";
23
24function preLoadImg(URL){
25
26    arrImgList = new Array (
27        URL+"img/contents/btn_search_on.jpg",URL+"img/contents/btn_regist_on.jpg",
28        URL+"img/contents/btn_csv_on.jpg",URL+"img/contents/arrow_left.jpg",URL+"img/contents/arrow_right.jpg"
29    );
30    arrPreLoad = new Array();
31    for (i in arrImgList) {
32        arrPreLoad[i] = new Image();
33        arrPreLoad[i].src = arrImgList[i];
34    }
35    preLoadFlag = "true";
36}
37
38function chgImg(fileName,img){
39    if (preLoadFlag == "true") {
40        if (typeof(img) == "object") {
41            img.src = fileName;
42        } else {
43            document.images[img].src = fileName;
44        }
45    }
46}
47
48function chgImgImageSubmit(fileName,imgObj){
49imgObj.src = fileName;
50}
Note: See TracBrowser for help on using the repository browser.