Forum đề thi casio

Tình hình diễn đàn

Thống kê bài viết mới


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1[CODE] Code nguồn bài viết Empty [CODE] Code nguồn bài viết Wed Aug 03, 2011 1:24 pm

admin

admin
Admin
Admin
Loading
[CODE] Code nguồn bài viết Nguon11

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]

http://www.leducduy.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Bài viết mới cùng chuyên mục

    Bài viết liên quan với[CODE] Code nguồn bài viết

      Permissions in this forum:
      You cannot reply to topics in this forum