Tải bản đầy đủ (.doc) (2 trang)

tao bang kiem tra code ngay tren blog cua ban

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (68.13 KB, 2 trang )

<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1>

<b>Code tạo bảng kiểm tra code ngay trên blog của bạn</b>
Code như sau:


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


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


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


" /><form name="form1" method="post">


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


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


<i><b>Các bạn coppy và paste code cần kiểm vào bảng này(nhớ xố dịng chữ này đi nhé !)</b></i>


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


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


" /><iframe src="about:blank" name="preview" style=


"height:300px;width:225px;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()">


</div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>

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


(document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close();
preview.focus()">Xốtất


cả</button><button onclick=


"window.location.href=window.location.href">LàmLại</button></center>
<b>Sẽ khơng hiển thị nếu code của bạn bị lỗi,


khiđó bạn hãy sửa lại code ngay tại khung bên trái
!Chương trình ứng dụng chính xác cho các loại mã


JavaScript; HTML. Chúc bạn luôn thành công !</b></div>


</div>

<!--links-->

×