Các đoạn mã hay để thiết kế web

11 252 0
Các đoạn mã hay để thiết kế web

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

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

++++TẠO MÀU NỀN CHỮ VIẾT <table width="200"> <tr> <td style="padding: 15px" background="http://www.anhso.net/data/29/lovelyduck/563468/19554254.jpg"> <font size="2" color="#000"> <marquee scrollamount=1 direction=up width="500" height=200 scrolldelay=60>NOI DUNG BAI VIET </marquee> </font></td></tr></table 1/ Chữ chạy từ phải qua trái : <marquee > <font size=6 viết nội dung mail</font></marquee> 2/ Chữ chạy từ trái qua phải : <marquee direction="right"> <font size=6 color=blue> viết nội dung </font></marquee> 3/Chữ chạy loăng quăng trong màn hình : <marquee behavior="alternate"> <font size=6 color=blue> viết nội dung </font></marquee> 4/Chữ chạy lên : <marquee direction=up> <font size=6 color=blue> viết nội dung </marquee> 5/Chữ chạy xuống : <marquee direction=down> <font size=6 color=blue> viết nội dung </marquee> *Chữ chạy có nền nhấp nháy : 1/ Từ phải qua trái : <marquee > <font size=5 color=blue style=Trở lạiground:url(http://Thành viên.aol.com/sunstar253/images/gliter.gif)> viết nội dung </font></marquee> 2/Từ trái qua phải : <marquee direction="right"> <font size=5 color=blue style=Trở lạiground:url(http://Thành viên.aol.com/sunstar253/images/gliter.gif)>viết nội dung </font></marquee> 3/Chạy long tong trong màn hình : <marquee behavior="alternate"> <font size=5 color=blue style=Trở lạiground:url(http://Thành viên.aol.com/sunstar253/images/gliter.gif)> viết nội dung </font></marquee> 4/Chạy lên : <marquee direction=up> <font size=5 color=blue style=Trở lạiground:url(http://Thành viên.aol.com/sunstar253/images/gliter.gif)> viết nội dung </font></marquee> 5/ Chạy xuống : <marquee direction=down> <font size=5 color=blue style=Trở lạiground:url(http://Thành viên.aol.com/sunstar253/images/gliter.gif)> viết nội dung </font></marquee> +++Chat với tôi Thủ thuật sau sẽ giúp các bạn có 1 hộp chat con như bên menu dọc của tôi mục Chat với tôi,rất thuận tiện cho việc trao đổi tin tức Đầu tiên các bạn vào trang này để bắt đầu đăng ký cho mình 1 tài khoản CBOX http://www. cbox .ws/getone.php Màn hình đăng ký như hình 1 Hình 1: - các bạn điền các thông tin như hình.và nhấn Create my Cbox. Sau khi đăng nhập chon giao diện tiếng Việt cho hộp chat Hình 2: Chọn giao diện - Phần language chọn Vietnamese Hình 3 : các thiết lập 1.Layout options : Chọn kiểu hiển thị, các bạn chọn như hình dưới( và nhớ Save lại sau khi đã thiết lập xong) 2. Mục Options - Mục posting options : THiết lập như hình trên. SAu đó nhấn Save - Mục Date options như hình dưới -Mục Emoticons các bạn thay thế URL mặc định bằng link các ảnh, biểu tượng bạn muốn để chèn khi chat. Mục message để quản lý tin nhắn, xóa tin, chặn người chat SAu khi hoàn thành nhấn PUBLISH để có code chèn vào VIolet. Chúc các bạn thành công! (Theo Mai Thư) • LỜI CHÚC <center><script type="text/javascript"> var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("CHỦ NHẬT","THỨ HAI","THỨ BA","THỨ TƯ","THỨ NĂM","THỨ SÁU","THỨ BẢY") var montharray=new Array("01","02","03","04","05","06","07","08","09","10","11","12") document.write("<font color='#404fe3' face='Arial' size='2'><b>"+dayarray[day]+", "+daym+"/"+montharray[month] +"/"+year+"<\/b><\/font>") </script></center> <script language="JavaScript" type="text/javascript"> <! // Store the date In avarlable d = new Date() dateText = "" // Get the cuurent day and convert it to the name of the day dayValue = d.getDay() if(dayValue == 0) dateText += "Chủ Nhật" else if (dayValue == 1) dateText += "Thứ Hai" else if (dayValue == 2) dateText += "Thứ Ba" else if (dayValue == 3) dateText += "Thứ Tư" else if (dayValue == 4) dateText += "Thứ Năm" else if (dayValue == 5) dateText += "Thứ Sáu" else if (dayValue == 6) dateText += "Thứ Bảy" // Get the current date; if it's before 2000,add 1900 dateText += ", Ngày " + d.getDate()+"," // Get the current month and convert it to the name of the month monthValue = d.getMonth() dateText += " " if (monthValue == 0) dateText += "Tháng 1" if (monthValue == 1) dateText += "Tháng 2" if (monthValue == 2) dateText += "Tháng 3" if (monthValue == 3) dateText += "Tháng 4¬" if (monthValue == 4) dateText += "Tháng 5" if (monthValue == 5) dateText += "Tháng 6" if (monthValue == 6) dateText += "Tháng 7" if (monthValue == 7) dateText += "Tháng 8" if (monthValue == 8) dateText += "Tháng 9" if (monthValue == 9) dateText += "Tháng 10" if (monthValue == 10) dateText += "Tháng 11" if (monthValue == 11) dateText += "Tháng 12" // Get the current year; if it's before 2000, add 1900 if (d.getYear() < 2000) dateText += ", Năm " + (1900 + d.getYear()) else dateText += ", Năm " + (d.getYear()) // Get the current minutes minuteValue = d.getMinutes() if (minuteValue < 10) minuteValue = "0" + minuteValue // Get the current hours hourValue = d.getHours() // Customize the greeting based on the current hours if (hourValue < 6) { greeting = "<center>Chào ngày mới! <\/center>" greeting1 = "<center>Chúc các bạn một ngày mới an lành!<\/center>" } else if (hourValue < 9) { greeting = "<center>Chào buổi sáng! <\/center>" greeting1 = "<center>Chúc các bạn một buổi sáng tốt lành! <\/center>" } else if (hourValue < 11) { greeting = "<center>Sắp trưa rồi!<\/center>" greeting1 = "<center>Chúc các bạn có một ngày thành công và hạnh phúc!.<\/center>" } else if (hourValue < 13) { greeting = "<center>Đã buổi trưa rồi đó!<\/center>" greeting1 = "<center>Chúc các bạn có bữa trưa thật ngon miệng!<\/center>" } else if (hourValue < 17) { greeting = "<center>Đã buổi chiều!<\/center>" greeting1 = "<center>Hãy cố gắng hoàn thành công việc trong ngày!<\/center>" } else if (hourValue < 18) { greeting = "<center>Sắp tối rồi!<\/center>" greeting1 = "<center>Chúc các bạn có bữa tối thật ngon miệng bên người thân!<\/center>" } else if (hourValue <= 21) { greeting = "<center>Chào buổi tối!<\/center>" greeting1 = "<center>Chúc các bạn có bữa tối thật vui vẻ và hạnh phúc bên người thân!<\/center>" } else { greeting = "<center>Khuya rồi đấy! <\/center>" greeting1 = "<center>Hãy đi ngủ thôi! Chúc các bạn có một giấc ngủ thật ngon cùng những giấc mơ đẹp!<\/center>" } // Write the greeting, the date, and the time to the page document.write(greeting +greeting1) // > </script> THÔNG BÁO TRÊN BLOG <embed flashvars="MyTxt= Chào mừng quý khách ghé thăm#trang blog andakpo24h.# CHÚC QUÝ KHÁCH SỨC KHỎE, HẠNH PHÚC!" style="height: 150px; width: 200px;" wmode="transparent"> </div> 1.Chữ chạy sang trái <marquee> WEBSITE CỦA PHAN TUẤN HẢI</marquee> 2. Chữ chạy sang phải <marquee direction="right">WEBSITE CỦA PHAN TUẤN HẢI</marquee> 3.Chữ chạy qua lại : <marquee behavior="alternate">WEBSITE HÓA HỌC HPT</marquee> 4. Chữ chạy dưới lên <marquee direction="up">WEBSITE CỦA PHAN TUẤN HẢI</marquee> 5. Chữ chạy trên xuống <marquee direction="down">WEBSITE CỦA PHAN TUẤN HẢI</marquee> 6. Chữ chạy lên xuống <marquee direction="up" behavior="alternate">WEBSITE CỦA PHAN TUẤN HẢI</marquee> 7. Chữ bay hình sin <marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">WEBSITE CỦA PHAN TUẤN HẢI</marquee></marquee> 8. Chữ bay hình chữ Z <marquee behavior="alternate" direction="up" width="80%"><marquee direction="right" behavior="alternate">WEBSITE CỦA PHAN TUẤN HẢI</marquee></marquee> 9. Mũi tên nhấp nháy <marquee behavior="alternate" width="10%">>></marquee>WEBSITE CỦA PHAN TUẤN HẢI<marquee behavior="alternate" width="10%"><<</marquee> 10. Mũi tên chạy ra <marquee behavior="alternate" width="10%">>></marquee>WEBSITE CỦA PHAN TUẤN HẢI<marquee behavior="alternate" width="10%"><<</marquee> 11.Chữ có màu nền <font color="#FFFFFF"><marquee direction="left" style="background:BLUE"> WEBSITE CỦA PHAN TUẤN HẢI</marquee></font> 12. Chữ có khung <marquee style="border:BLUE 2px SOLID">WEBSITE CỦA PHAN TUẤN HẢI</marquee> 13. Chữ co dãn 1 <MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | |</MARQUEE>WEBSITE CỦA PHAN TUẤN HẢI<MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>4</font></MARQUEE>/ 14. Chữ co dãn 2 <MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font face=Webdings>4</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | |</MARQUEE>WEBSITE CỦA PHAN TUẤN HẢI<MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE> 15. Chữ chạy và biến mất. <marquee behavior="alternate"><marquee width="150">WEBSITE CỦA PHAN TUẤN HẢI</marquee></marquee> 16.Chữ lơ lửng <marquee behavior=alternate direction=up scrollamount=2 scrolldelay=65 height=80 style="Text-align;filter:wave(add=0,phase=1, freq=1,strength=15,color=.FFFFFF)"><center>WEBSITE CỦA PHAN TUẤN HẢI<br >Giao lưu và chia sẻ </center></marquee> 17- Chữ màu ( tĩnh): <b><font color="#3300FF"> CHÀO CÁC THẦY CÔ GIÁO ĐẾN VỚI</font><font color="#FF00FF "> WEBSITE CỦA PHAN TUẤN HẢI</font></b> Mã : <b><font color="#mã màu"> Đoạn văn bản </font></b> 18- Chữ màu chạy trong khung màu: <marquee style="border:BLUE 2px SOLID"> <b><font color="#3300FF">CHÀO MỪNG CÁC BẠN ĐẾN THĂM </font></b> </marquee> Thay BLUE bằng các từ khác để được màu khung theo ý muốn của bạn. Ví dụ: RED (đỏ), , GREEN (xanh lá cây), PINK (hồng), YELLOW (vàng), VIOLET (tím), BLACK (đen) 19) Chữ chạy điều chỉnh được tốc size: <marquee <font color="#FF0000" size="4"> WEBSITE CỦA PHAN [...]...TUẤN HẢI 20) Chữ chạy thay đổi tốc độ, size: WEBSITE CỦA PHAN TUẤN HẢI 21) Canh giữa: WEBSITE CỦA PHAN TUẤN HẢI . Emoticons các bạn thay thế URL mặc định bằng link các ảnh, biểu tượng bạn muốn để chèn khi chat. Mục message để quản lý tin nhắn, xóa tin, chặn người chat SAu khi hoàn thành nhấn PUBLISH để có. - các bạn điền các thông tin như hình.và nhấn Create my Cbox. Sau khi đăng nhập chon giao diện tiếng Việt cho hộp chat Hình 2: Chọn giao diện - Phần language chọn Vietnamese Hình 3 : các thiết. VỚI</font><font color="#FF00FF "> WEBSITE CỦA PHAN TUẤN HẢI</font></b> Mã : <b><font color=" #mã màu"> Đoạn văn bản </font></b> 18- Chữ

Ngày đăng: 29/04/2015, 18:00

Từ khóa liên quan

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

Tài liệu liên quan