Gốc > Bài viết > Tìm hiểu CNTT > Co de > Mã co de >

Code tạo bảng kiểm tra code trên blog

<div class="content">

<table style=

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

<tr>

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

"http://i9.glitter-graphics.org/pub/1028/1028479ssdyfudbye.gif">

<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;">

 

Các bạn coppy và  paste code cần kiểm vào bảng này(nhớ xoá dòng chữ này đi nhé !)

</textarea></form>

</td>

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

"http://i9.glitter-graphics.org/pub/1028/1028479ssdyfudbye.gif">

<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()">

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à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>


Nhắn tin cho tác giả
Chu Văn Quý @ 16:10 24/12/2010
Số lượt xem: 351
Số lượt thích: 0 người
 
Gửi ý kiến