| 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 | */ |
|---|
| 22 | var preLoadFlag = "false"; |
|---|
| 23 | |
|---|
| 24 | function 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 | |
|---|
| 38 | function chgImg(fileName,imgName){ |
|---|
| 39 | if (preLoadFlag == "true") { |
|---|
| 40 | document.images[imgName].src = fileName; |
|---|
| 41 | } |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | function chgImgImageSubmit(fileName,imgObj){ |
|---|
| 45 | imgObj.src = fileName; |
|---|
| 46 | } |
|---|