Make your own free website on Tripod.com
"; smilies_tag = new Array("", ":)", ":D", "?)", ":8", ":.(", ":t", "?.?", ":(", ":o-", ":-y", "*:-", ":@", "^.^", "8-", ":-o-", ""); emotion ="emotion.php?name=em"; bLoad=false pureText=true public_description=new Editor function Editor() { this.put_html=SetHtml; this.get_html=GetHtml; this.put_text=SetText; this.get_text=GetText; this.CompFocus=GetCompFocus; } function GetCompFocus() { Composition.focus(); } function GetText() { return Composition.document.body.innerText; } function SetText(text) { text = text.replace(/\n/g, "
") Composition.document.body.innerHTML=text; } function GetHtml() { cleanHtml(); cleanHtml(); return Composition.document.body.innerHTML; } function SetHtml(sVal) { Composition.document.body.innerHTML=sVal; } var YInitialized = false; function document.onreadystatechange(){ if (YInitialized) return; YInitialized = true; var i, s, curr; Composition.document.open("text/html","replace") Composition.document.close() Composition.document.write(bodyTag); SetHtml(hiddencomposeform.hiddencomposeformTextArea.value); } Composition.document.open(); Composition.document.write(bodyTag); Composition.document.close(); smilies_filled = false; function Focus() { document.messageform.message.focus(); } function Select() { return document.selection.createRange(); } function Target(t){ if(t) return document.getElementById(t); else return document.messageform.message; } function show_box(val){ show_box[val] = ( show_box[val] ) ? false : true; Target(val).style.visibility = (show_box[val]) ? 'visible' : 'hidden'; } function show_smilies(){ set_smilies(); show_box('smilie_box'); } function set_smilie( id ){ show_box('smilie_box'); if (document.selection == null){ Target().value += id; return; } Focus(); Select().text = id; return; } function set_smilies(){ if(!smilies_filled){ for(var i=1;i'; } } return smilies_filled = true; } //-->
โดย :