X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=c5eba32d499f6f68ecbd8642d537202fdd9a0b09;hb=a4a7154a92b3b6b20849b095a85407e27cea1115;hp=d04ef6f834e590136c0db9062a6660457dc12280;hpb=dd16d683733bebd22757ec97dc7af1aa046e78e5;p=brisk.git diff --git a/web/commons.js b/web/commons.js index d04ef6f..c5eba32 100644 --- a/web/commons.js +++ b/web/commons.js @@ -572,6 +572,10 @@ function notify(st, text, tout, butt, w, h) this.ancestor.appendChild(box); this.toutid = setTimeout(function(obj){ obj.unblock(); }, tout, this); + + formsub_hilite(clo); + clo.focus(); + } notify.prototype = { @@ -894,3 +898,18 @@ function langtolng(lang) else return (""); } + +function formtext_hilite(obj) +{ + obj.className = 'input_text'; + addEvent(obj, "focus", function () { this.className = 'input_text_hi'; }); + addEvent(obj, "blur", function () { this.className = 'input_text'; }); +} + +function formsub_hilite(obj) +{ + obj.className = 'input_sub'; + addEvent(obj, "focus", function () { this.className = 'input_sub_hi'; }); + addEvent(obj, "blur", function () { this.className = 'input_sub'; }); +} +