diff options
author | 藍挺瑋 <lantw44@gmail.com> | 2012-12-12 00:16:24 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2012-12-12 00:16:24 +0800 |
commit | ca1be85599977813bd1efa64dfaa02a65714c7cc (patch) | |
tree | 0a9749d3cb421a97e2dfa9b455e5fbd26779dfaa /js/common.js | |
parent | 4d62013f174f4dec50ce56a6a74e5c50da822132 (diff) | |
download | inccalendar-ca1be85599977813bd1efa64dfaa02a65714c7cc.tar.gz inccalendar-ca1be85599977813bd1efa64dfaa02a65714c7cc.tar.zst inccalendar-ca1be85599977813bd1efa64dfaa02a65714c7cc.zip |
加入管理狀態列的共用函式
目前都放在 common.js,歡迎大家修改。
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]; + } + } +} |