loveforever Quản trị forum
Giới tính : Tuổi : 33 Posts : 445 Points : 961 Thanked : 149 Công việc : Sinh viên CNTT Cung hoàng đạo : Tham gia ngày : 23/01/2011 Đến từ : http://cnttv.net
Tài sản Huy chương:
| Tiêu đề: Tổng hợp một số code cho trang web ( Phần 1 ) Sun May 08, 2011 5:23 pm | |
| Code tạo hộp thông báo (chúc mừng) khi truy cập vào trang web - Code:
-
<SCRIPT language=JavaScript1.1> alert("Chào mừng bạn đến chơi nhà , Chẳng Có Gì Hơn Ngoài Những Lời Chúc ...!\n Chúc Bạn Tràn Đầy Hạnh Phúc \n Gặp Nhiều May Măn , Niềm Vui Phơi Phới ..!\n Và Nhớ Ghé Thăm http://www.congdongitvn.tk/ Nhé ! Cảm Ơn Tất Cả Các Bạn - Đại Gia Đình IT - VN!\n Admin : loveforever>"); </SCRIPT> Code cảm ơn cuối trang - Code:
-
<b><marquee direction="left" scrollamount="6" onmouseover="this.stop();" onmouseout="this.start();"><font color="#FF0000" size="2">CẢM ƠN CÁC BẠN ĐÃ GHÉ THĂM WEBSITE ……………….. </font></marquee> <font color="#3300FF">Bản quyền: loveforever B </font></b><font color="#FF00FF "> Code tỷ giá ngoại tệ (Vietcombank), giá vàng (do SJC cung cấp) 1. Code tỷ giá ngoại tệ ( Nguồn cung cấp: Vietcombank hàng ngày vào 9 giờ sáng ) - Code:
-
<iframe src="http://www.vietstock.com.vn/Transweb/tygia.htm" width="180" height="240" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe> 2. Code giá vàng ( Do SJC cung cấp ) - Code:
-
<iframe src="http://www.vietstock.com.vn/Transweb/giavang.htm" width="150" height="200" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe> Code tra cứu sự kiện “ Ngày này năm xưa” - Code:
-
<iframe width = "99%" height = 400 src = "http://home.vnn.vn/ngaynaynamxua/"></iframe Code nhúng ngày tháng năm tiếng việt cho blog hoặc website - Code:
-
<script language="" type="text/javascript">
<!-- // Array ofmonth Names
<!-- var monthNames = new Array("một","hai","ba","bốn","năm","sáu","bảy","tám","chín","mười","mười một","mười hai"); -->
var monthNames = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
var dayNames = new Array("Chủ nhật,","Thứ Hai,","Thứ Ba,","Thứ tư,","Thứ Năm,","Thứ Sáu,","Thứ Bảy,")
var now = new Date();
thisYear = now.getYear();
thisDay = dayNames[now.getDay()];
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write("Hôm nay : " + thisDay +" "+"ngày"+" "+ now.getDate() + " tháng " + monthNames[now.getMonth()] + " năm " + thisYear);
// -->
</script> code thông tin chi tiết trình duyệt - Code:
-
<center><h1>Browser Information</h1></center> <script language="JavaScript"> document.write('<STRONG><FONT FACE="Arial, Helvetica, sans-serif">The application name of the browser is: </FONT></STRONG><CODE>' + navigator.appName + '</CODE><BR>'); document.write('<STRONG><FONT FACE="Arial, Helvetica, sans-serif">The version of the browser is: </FONT></STRONG><CODE>' + navigator.appVersion + '</CODE><BR>'); document.write('<STRONG><FONT FACE="Arial, Helvetica, sans-serif">The user agent of the browser is: </FONT></STRONG><CODE>' + navigator.userAgent + '</CODE>\n<P>'); if (navigator.plugins) { document.write('<STRONG><FONT FACE="Arial, Helvetica, sans-serif">The following Netscape plugins are installed in this browser:</FONT></STRONG><BR>'); for (var i=0; i < navigator.plugins.length; i++) { document.write('> <CODE>' + navigator.plugins[i].name + '</CODE><BR>'); } } else { document.write('<STRONG><FONT FACE="Arial, Helvetica, sans-serif">If you were using Netscape 3.0 or later, you would see a list of installed plugins here.</FONT></STRONG>\n<P>') } </script> Thấy hay thì thank mình cái nhé | |
|
Gin Học viên 2
Posts : 11 Points : 12 Thanked : 1 Tham gia ngày : 10/06/2011
| Tiêu đề: Re: Tổng hợp một số code cho trang web ( Phần 1 ) Tue Jun 28, 2011 10:51 pm | |
| - Trích dẫn :
- Code tạo hộp thông báo (chúc mừng) khi truy cập vào trang web
bỏ vào đâu hả đại ca | |
|
loveforever Quản trị forum
Giới tính : Tuổi : 33 Posts : 445 Points : 961 Thanked : 149 Công việc : Sinh viên CNTT Cung hoàng đạo : Tham gia ngày : 23/01/2011 Đến từ : http://cnttv.net
Tài sản Huy chương:
| Tiêu đề: Re: Tổng hợp một số code cho trang web ( Phần 1 ) Wed Jun 29, 2011 7:12 pm | |
| Cái này cứ viết vào trong thẻ head là được mà. | |
|
Sponsored content
| Tiêu đề: Re: Tổng hợp một số code cho trang web ( Phần 1 ) | |
| |
|