Tải bản đầy đủ (.doc) (1 trang)

Đoạn code giúp hiển thị đồng hồ và ngày tháng ở đầu mỗi trang

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (98.98 KB, 1 trang )

Đoạn code giúp hiển thị đồng hồ và ngày tháng ở đầu
mỗi trang .
Mục bôi đen 1 là : Chúc moi người luôn vui khoẻ, hạnh phúc và thành đạt!
Mục bôi đen 2 là : bây giờ là
2 mục này các bạn có thể thay thế theo ý mình cho phù hợp.
--------------------------------
<div> <font face="Unicode" color="blue" size="4"><marquee align="middle"
{behavior="alternate"} width="550" height="31" scrollamount="4">Chúc m&#7885;i
ng&#432;&#7901;i luôn vui kho&#7867;, h&#7841;nh phúc và thành
&#273;&#7841;t!</marquee> </font> <div><b>Bây gi&#7901;
là:</b></div><div><center><script
src=" type="text/javascript"
language="JavaScript">obj=new Object;obj.clockfile="5005-


blue.swf";obj.TimeZone="VietNam_Hanoi";obj.width=250;obj.height=50;obj.wmode=
"transparent";showClock(obj);</script></center></div>
<center>
<script>
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&#7911; Nh&#7853;t","Th&#7913; 2","Th&#7913;
3","Th&#7913; 4","Th&#7913; 5","Th&#7913; 6","Th&#7913; 7")
var montharray=new Array("","2","3","4","5","6","7","8","9","10","11","12")
document.write("<font color='0000FF' face='Arial' size='2'><b>"+dayarray[day]+",
ngày "+daym+" tháng "+montharray[month]+" n&#259;m "+year+"</b></font>")
</script>
----------------------------------
Đoạn code trên có ý tưởng từ bạn Trần Đức Phong ,địa chỉ
web: />

×