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

code chèn biểu cảm

1 192 0

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

THÔNG TIN TÀI LIỆU

Nội dung

ĐÂY LÀ CODE "CHÈN BIỂU CẢM": <script type="text/javascript"> var cbvis = false; var cbload = false; function togglecbox () { var cbdiv = document.getElementById("cboxdiv"); var cbbut = document.getElementById("cboxbutton"); if (!cbvis) { if (!cbload) { cbdiv.innerHTML = '<iframe frameborder="0" width="350" height="400" cbload = true; } cbdiv.style.display = "block"; cbbut.innerHTML = "ĐÓNG LẠI !"; } else { cbdiv.style.display = "none"; cbbut.innerHTML = "Chèn biểu cảm."; } cbvis = !cbvis; } </script><div id="cboxbutton" style= "position: fixed; bottom: 5px; right: 50px; width: 100px; padding: 3px; text-align: center; cursor: pointer; background-color: yellow; border:blue 2px solid;border-radius: 3px; font-family: Tahoma, sans-serif; font-size: 12px;" onclick="togglecbox()">Chèn biểu cảm</div> <div id="cboxdiv" style= "display: none; position: fixed; bottom:30px; right: 500px; width: 350px; background: #EDF3F7; padding: 1px; line-height: 0;border:#C3D7E5 0px solid;border-radius: 0px;"> </div> . ĐÂY LÀ CODE "CHÈN BIỂU CẢM": <script type="text/javascript"> var cbvis = false; var cbload. "ĐÓNG LẠI !"; } else { cbdiv.style.display = "none"; cbbut.innerHTML = " ;Chèn biểu cảm. "; } cbvis = !cbvis; } </script><div id="cboxbutton" style= "position:. font-family: Tahoma, sans-serif; font-size: 12px;" onclick="togglecbox()"> ;Chèn biểu cảm& lt;/div> <div id="cboxdiv" style= "display: none; position: fixed;

Ngày đăng: 25/06/2015, 17:00

TỪ KHÓA LIÊN QUAN

w