Việt Nam quê hương tôi


Tài nguyên dạy học

Thống kê

  • truy cập   (chi tiết)
    trong hôm nay
  • lượt xem
    trong hôm nay
  • thành viên
  • Gốc > Làm đẹp trang web > Code hay - lượm lặt >

    Kiểm tra code

    kt_code

    Quý thầy cô copy đoạn code bên dưới và dán vào khối chính:

    <div style=

    "font: 12px Verdana, Geneva, Lucida, 'Lucida Grande'; margin-bottom:3px">

    <input type="button" value="BẬT KIỂM TRA CODE" style=

    "width:130px;font-size:12px;margin:0px;padding:0px;" 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 = 'TẮT CHƯƠNG TRÌNH'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'BẬT KIỂM TRA CODE'; }"></div>

    <div style=

    "min-height: 20px; background-color: #ffcc33; margin: 0px; padding: 1px; border: 1px inset;">

    <div style="display: none;">

    <div align="center">

    <div style=

    "BORDER-BOTTOM: rgb(108,177,210) 2px solid; BORDER-LEFT: rgb(108,177,210) 1px solid; WIDTH: 520; BORDER-TOP: rgb(108,177,210) 1px solid; BORDER-RIGHT: rgb(108,177,210) 1px solid">

    <div style=

    "BORDER-BOTTOM: rgb(220,220,220) 5px outset; BORDER-LEFT: rgb(79,79,79) 5px outset; BORDER-TOP: rgb(105,105,105) 5px outset; BORDER-RIGHT: rgb(245,245,220) 5px outset">

    <div style=

    "BORDER-BOTTOM: rgb(255,255,255) 3px solid; BORDER-LEFT: rgb(255,255,255) 3px solid; BACKGROUND: rgb(117,183,249); BORDER-TOP: rgb(255,255,255) 3px solid; BORDER-RIGHT: rgb(255,255,255) 3px solid">

    <p><font color="red" size="1"><b>Blog Nguyễn Thanh

    Tùng</b></font></p>

    <table style=

    "width:500px;border:solid 1px #959492;background:#CFCFCF">

    <tr>

    <td valign="top">

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

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

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

     

    Các bạn hãy thay thế đoạn văn bản ở đây bằng đoạn mã các bạn muốn kiểm tra, các bạn có thể sửa chúng ngay ở đây để đoạn mã của các bạn được hiển thị một cách tốt nhất!

    </textarea></form>

    </td>

    <td valign="top"><iframe src="about:blank" name="preview" style=

    "height:300px;width:245px;border:solid 1px #b9b8b6;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 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>

    <p><font color="blue" size="1"><b>Chúc các bạn thành

    công!</b></font></p>

    </div>

    </div>

    </div>

    </div>

    </div>

    </div>

    <div class="clear"></div>

      


    Nhắn tin cho tác giả
    Hồ Thị Kim Loan @ 10:11 02/10/2012
    Số lượt xem: 347
    Số lượt thích: 0 người
     
    Gửi ý kiến