X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=80da0bbad94703906998412f378469169bcc8b5d;hb=9fe01afc16fc77e8df25c556dae021052eddce42;hp=33bb8eb066e48eb54ec1234f74d54ad0a26842fc;hpb=0900364491042222a4ff6d08cc627c0677acd9b9;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 33bb8eb..80da0bb 100644 --- a/web/commons.js +++ b/web/commons.js @@ -204,6 +204,16 @@ function act_tableinfo() send_mesg("tableinfo"); } +function act_help() +{ + send_mesg("help"); +} + +function act_about() +{ + send_mesg("about"); +} + function safelogout() { var res; @@ -445,30 +455,39 @@ function hide_asta() $("asta").style.visibility = "hidden"; } -function notify(st, ancestor, text, tout, butt) + +function notify(st, text, tout, butt, w, h) { var clo, box; var t = this; this.st = st; - this.ancestor = ancestor; + + this.ancestor = document.body; this.st.st_loc_new++; clo = document.createElement("input"); clo.type = "submit"; clo.className = "button"; + clo.style.bottom = "4px"; clo.value = butt; clo.obj = this; clo.onclick = this.input_hide; + + clodiv = document.createElement("div"); + clodiv.className = "notify_clo"; + clodiv.appendChild(clo); box = document.createElement("div"); box.className = "notify"; box.innerHTML = text; box.style.zIndex = 200; - box.appendChild(clo); + box.style.width = w+"px"; + box.style.height = h+"px"; + box.appendChild(clodiv); box.style.visibility = "visible"; - + this.notitag = box; this.ancestor.appendChild(box);