diff options
Diffstat (limited to 'js/common.js')
-rw-r--r-- | js/common.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/common.js b/js/common.js new file mode 100644 index 0000000..0f04a6f --- /dev/null +++ b/js/common.js @@ -0,0 +1,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]; + } + } +} |