source: temp/trunk/html/install/user_data/js/navi.js @ 2307

Revision 2307, 1.6 KB checked in by kakinaka, 20 years ago (diff)

blank

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1    var preLoadFlag = "false";
2
3    function preLoadImg(){
4        arrImgList = new Array (
5            "/img/header/entry_on.gif","/img/header/contact_on.gif","/img/header/cartin_on.gif",
6            "/img/header/fashion_on.gif","/img/header/jewely_on.gif","/img/header/electronic_on.gif","/img/header/pc_on.gif","/img/header/beauty_on.gif","/img/header/tv_on.gif","/img/header/login_on.gif",
7            "/img/left/shopping_on.gif","/img/left/flow_on.gif","/img/left/faq_on.gif","/img/left/mailmagazine_on.gif","/img/left/point_on.gif","/img/left/fax_on.gif","/img/left/order_on.gif",
8            "/img/right_product/detail_on.gif","/img/right_product/review_on.gif","/img/right_product/cart_on.gif",
9            "/img/top/backnumber_on.jpg","/img/top/diary01_on.gif","/img/top/diary02_on.gif","/img/top/more_on.gif",
10            "/img/button/fortop_on.gif","/img/button/back_on.gif","/img/button/back02_on.gif","/img/button/back03_on.gif","/img/button/next_on.gif","/img/button/close_on.gif","/img/button/confirm_on.gif","/img/button/entry_on.gif","/img/button/next_on.gif","/img/button/reji_on.gif","/img/button/send_on.gif","/img/button/top_on.gif",
11            "/img/right_mailmagazine/entry_on.gif","/img/right_mailmagazine/release_on.gif",
12            "/img/shopping/complete_on.gif","/img/shopping/loan_on.gif","/img/login/log_on.gif"
13        );
14        arrPreLoad = new Array();
15        for (i in arrImgList) {
16            arrPreLoad[i] = new Image();
17            arrPreLoad[i].src = arrImgList[i];
18        }
19        preLoadFlag = "true";
20    }
21
22    function chgImg(fileName,imgName){
23        if (preLoadFlag == "true") {
24            document.images[imgName].src = fileName;
25        }
26    }
27
28
29function chgImgImageSubmit(fileName,imgObj){
30    imgObj.src = fileName;
31}
Note: See TracBrowser for help on using the repository browser.