Thống kê

  • truy cập   (chi tiết)
    trong hôm nay
  • lượt xem
    trong hôm nay
  • thành viên
  • Vui mừng chào đón

    1 khách và 0 thành viên
    Gốc > THỦ THUẬT WEB-BLOG > Code cho blog >

    Hộp kiểm tra code

     Nhiều khi việc chèn code cần lần 1 chưa ổn. Muốn định dạng và sửa lại theo ý muốn thì công cụ kiểm tra code sau thật hữu ích. Các thầy cô chèn vào khối chính nhé.

    Hình ảnhaminh họa:

    ktracode_500

    Đây là mã code:

     

     

    <center><img src="/uploads/resources/495/thuma1.gif" border="0"

    width="273" height="65"><img src=

    "http://i828.photobucket.com/albums/zz202/jang14590/Bieutuongyahoo/emot176.gif"

    border="0" width="100" height="80"></center>

    <div style=

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

    <input value="BẬT CHƯƠNG TRÌNH" 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 CHƯƠNG TRÌNH'; }"

    type="button"></div>

    <div style=

    "min-height: 20px; background-color: rgb(51, 153, 255); margin: 0px; padding: 1px; border: 1px inset;">

    <div style="display: none;">

    <div align="center">

    <div style="border: 2px solid rgb(108, 177, 247); width: 518px;">

    <div style=

    "border-width: 17px; border-style: outset; border-color: rgb(105, 105, 105) rgb(245, 245, 245) rgb(220, 220, 220) rgb(79, 79, 79);">

    <div style=

    "border: 3px solid rgb(255, 255, 255); background: none repeat scroll 0% 0% rgb(117, 183, 249);">

    <p><font color="#FF3333" size="2"><b>PHONG CÁCH TOÁN TIN - ĐỖ

    CƯỜNG</b></font></p>

    <table style=

    "width: 476px; border: 1px solid rgb(149, 148, 146); background: none repeat scroll 0% 0% rgb(207, 207, 207);">

    <tbody>

    <tr>

    <td valign="top">

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

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

    "border: 1px solid rgb(185, 184, 182); padding: 5px; width: 225px; height: 300px;">

     

    Một cách tuyệt vời để kiểm tra sự hiển thị các đoạn mã của bạn! Bạn hãy thay thế đoạn văn bản ở đây bằng đoạn mã bạn muốn kiểm tra, bạn có thể sửa chúng ngay ở đây để đoạn mã của 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: 310px; width: 225px; border: 1px solid rgb(185, 184, 182); background: none repeat scroll 0% 0% rgb(255, 255, 255);"

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

    </tr>

    </tbody>

    </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="white" size="1"><b><u>NGUỒN</u></b></font> :

    <font color="yellow" size=

    "2"><b><i>http://docuongbg.violet.vn</i></b></font></p>

    </div>

    </div>

    </div>

    </div>

    </div>

    </div>

    <br>

    <center>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 ! <a href=

    "http://docuongbg.violet.vn/entry/show/cat_id/4111713/entry_id/4753868"

    target="_blank">Lấy Code tại đây</a></center>

     


    Nhắn tin cho tác giả
    Đỗ Văn Cường @ 10:56 12/05/2011
    Số lượt xem: 2576
    Số lượt thích: 0 người
    Avatar
    Hộp kiểm tra code
     
    Gửi ý kiến