1. Trang chủ
  2. » Giáo án - Bài giảng

H2A_Code Đóng mở, cửa sổ kiểm tra code

3 317 0
Tài liệu đã được kiểm tra trùng lặp

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 3
Dung lượng 35,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Đóng mở, cửa sổ kiểm tra code... Các bạn coppy rồi paste code cần kiểm tra ở đây dán đè lên dòng chữ nhé !... -moz-background-inline-policy: continuous;"frameborder="0"> Xem hiển thịX

Trang 1

Đóng mở, cửa sổ kiểm tra code

<div style=

"font-family: Verdana,Geneva,Lucida,'Lucida Grande'; font-style: normal; font-variant: normal;

weight: normal; size: 12px; line-height: normal; size-adjust: none; font-stretch:

normal; -x-system-font: none; margin-bottom: 3px;">

<input value="MỞ CỬA SỔ KIỂM TRA CODE" style=

"margin: 0px; padding: 0px; width: 180px; font-size: 12px;"

onclick="if (this.parentNode.parentNode.getElementsByTagName('div')

[1].getElementsByTagName

('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')

[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'ĐÓNG CỬA

SỔ KIỂM TRA CODE'; } else

{ this.parentNode.parentNode.getElementsByTagName('div')

[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'MỞ

CỬA SỔ KIỂM TRA CODE'; }"

Trang 2

<div style=

"border: 0px inset ; margin: 0px; padding: 0px; min-height: 20px;">

<div style="display: none;">

<div align="center">

<table style=

"width500px;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:240px;height:300px;scroll:auto;">

Các bạn coppy rồi paste code cần kiểm tra ở đây (dán đè lên dòng chữ nhé !)

</textarea></form>

</td>

<td valign="top" background=

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

src="about:blank" name="preview" style=

"border: 1px solid rgb(185, 184, 182); background: rgb(255, 255, 255) none repeat scroll 0% 0%;

height: 300px; width: 240px; -moz-background-clip: border; -moz-background-origin: padding;

Trang 3

-moz-background-inline-policy: continuous;"

frameborder="0"></iframe></td>

</tr>

</table>

<center><button onclick=

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

preview.document.close(); preview.focus()">

Xem hiển thị</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><br>

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ã Java

Script; HTML Chúc bạn luôn thành công !</center>

Ngày đăng: 10/10/2013, 09:11

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w