1 [CODE] Code nguồn bài viết Wed Aug 03, 2011 1:24 pm
Chèn vào posting body :
- Code:
[size=16][size=21]<table><tr><td>
Nguồn:
<input name="nguon" /><input type="checkbox" name="checkbox"
value="Chấp nhận" onclick="doit()"/>Chấp nhận</td>
<script>
function doit(){
if (document.forms["post"]["checkbox"].checked==true)
{x=document.forms["post"]["message"].value;
document.forms["post"]["nguon"].disabled=true;
document.forms["post"]["message"].value=document.forms["post"]["message"].value+
"[right]"+document.forms["post"]["nguon"].value+"[/right]";
}
else{
document.forms["post"]["nguon"].disabled=false;
document.forms["post"]["message"].value=x;
}}
</script>
</tr></table>[/size][/size]
Chèn sau cái này vậy:
- Code:
[size=16][size=21]<textarea id="text_editor_textarea"
class="post" style="width:100%;height:250px" name="message" rows="15"
cols="35" tabindex="3" wrap="virtual">{MESSAGE}</textarea>[/size][/size]