Code tao bang thu code

1 5 0
Code tao bang thu code

Đang tải... (xem toàn văn)

Thông tin tài liệu

[r]

(1)

Code tạo bảng thử code:

<div class="content"> <table style=

"width:490px;border:solid 1px #959492;background:#ebebea"> <tr>

<td valign="top" style="padding: 5px" background=

"http://i1176.photobucket.com/albums/x335/quangthu05/Anh%20cho%20blog/nen.gif"> <form name="form1" method="post">

<textarea name="code" wrap="soft" onclick="focus(this.code)" style=

"border:solid 1px #b9b8b6;padding:5px;height:300px;width:235px;scroll:auto;">

Dán code!

</textarea></form> </td>

<td valign="top" style="padding: 5px" background=

"http://i1176.photobucket.com/albums/x335/quangthu05/Anh%20cho%20blog/nen.gif"> <iframe src="about:blank" name="preview" style=

"height:300px;width:235px;scroll:auto;border:solid 1px #b9b8b6;padding:5px;background:#ffffff" frameborder="0"></iframe></td>

</tr> </table>

<center><button onclick=

"preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">

Xem trước</button><button onclick=

"window.document.form1.code.value='';preview.document.write

(document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">Xoá

tất cả</button><button onclick=

"window.location.href=window.location.href">Làm Lại</button></center>

Ngày đăng: 16/05/2021, 14:37

Tài liệu cùng người dùng

Tài liệu liên quan