kiem tien, kiem tien online, kiem tien truc tuyen, kiem tien tren mang
Saturday, August 28, 2010

<form name="BM1">
<input type="text" name="MucVB" />
</form>
<script language="javascript">
function HamThoiGian(){
var ThoiGian = new Date();
var Gio = ThoiGian.getHours();
var Phut = ThoiGian.getMinutes();
var Giay = ThoiGian.getSeconds();
if(Gio<10){
Gio="0"+Gio;}
if(Phut<10){
Phut="0"+Phut;}
if(Giay<10){
Giay="0"+Giay;}
document.BM1.MucVB.value="Bây giờ là: "+Gio+":"+Phut+":"+Giay;
}
setInterval("HamThoiGian()",1000);
</script>

<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("","02","03","04","05","06","07","08","09","10","11","12")
document.write("<font color='#0066cc' face='Arial' size='2'><b>"+dayarray[day]+", "+daym+"/"+montharray[month]+"/"+year+"<\/b><\/font>")
</script>

0 comments:

Post a Comment

domain, domain name, premium domain name for sales

Popular Posts