tao bang kiem tra code ngay tren blog cua ban

2 3 0
tao bang kiem tra code ngay tren blog cua ban

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

Thông tin tài liệu

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[r]

(1)

Code tạo bảng kiểm tra code blog bạn Code sau:

<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 paste code cần kiểm vào bảng này(nhớ xố dịng chữ !)

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

(2)

"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ị code bạn bị lỗi,

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

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

Ngày đăng: 15/05/2021, 22:21

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

Tài liệu liên quan