***评论鲜果回复 pizicai评论너回复 <BR>function fillInMessageArea(othis){ <BR>var text = othis.parentNode.childNodes[0].firstChild.nodeValue; <BR>text = '回复' 텍스트; <BR>텍스트 = ':'; <BR>var me_area = $('#message_area'); <BR>me_area.val(""); <BR>me_area.val(text); <BR>setFocus(); <BR>} <BR>functionclearAll(){ <BR>var me_area = $('#message_area'); <BR>var input = document.getElementById('input_rewrite'); <BR>if(me_area.attr('class') == 'not_write') return false; <BR>var text = me_area.val(); <BR>text= text.replace(/(^S (:) ?)(s*.s*) /,"$1"); <BR>if(!text.match(/(.*?):/)) <BR>me_area.val(""); <BR>else <BR>me_area.val(text); <BR>setFocus(); <BR>hide_rewrite(입력); <BR>} <BR>function rewrite(){ <BR>var me_area = $('#message_area'); <BR>var text = me_area.val(); <BR>var input = document.getElementById('input_rewrite'); <BR>if(text.match(/^S (:) ?(s*.s*) /) ||(!text.match(/(.*?):/))) <BR>show_rewrite(input ); <BR>//input.value= "null이 아님"; <BR>else <BR>hide_rewrite(입력); <BR>if(text=='') <BR>hide_rewrite(입력); <BR>//input.value = "null"; <BR>//alert('null'); <BR>} <BR>function show_rewrite(input){ <BR>input.className = "can_rewrite"; <BR>} <BR>function hide_rewrite(input){ <BR>input.className = "not_write"; <BR>} <BR>function setFocus(){ <BR>esrc = document.getElementById('message_area'); <BR>//esrc.focus(); <BR>var rtextRange = ""; <BR>if(esrc.createTextRange){ <BR>rtextRange = esrc.createTextRange(); <BR>rtextRange.moveStart('character',esrc.value.length); <BR>rtextRange.collapse(true); <BR>rtextRange.select(); <BR>} <BR>}