aboutsummaryrefslogtreecommitdiffstats
path: root/js/common.js
blob: 0f04a6fc223746e359dfe77286b2eb60535e4d78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var stbobj;
var stbdic = {
    "loading": "載入中......",
    "completed": "完成"
};

function status_bar_init(){
    stbobj = document.getElementById("statusbar");
}

function status_bar_set(msgstr){
    stbobj.innerHTML = msgstr;
}

function status_bar_special(mgstr){
    for(spstr in stbdic){
        if(mgstr == spstr){
            stbobj.innerHTML = stbdic[spstr];
        }
    }
}