X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=c5eba32d499f6f68ecbd8642d537202fdd9a0b09;hb=8ed2a55a82dedbf9ce2014fc2ee1cc06ecedb525;hp=d04ef6f834e590136c0db9062a6660457dc12280;hpb=214cf52a34906272fb07f3b825d8425da4c92622;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'; }); +} +