Jumat, 20 April 2012
Objek 2 (Array) [ Aplikasi IT Part II ] pertemuan ke-4.3
<html>
<head>
<title>Contoh Objek Date</title>
</head>
<body background="10111529.jpg">
<script language="javascript">
<!--
var hari = new Array("Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu");
var bulan = new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
var jam = new Array("00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59");
var menit = new Array("00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59");
var detik = new Array("00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59");
var A= new Date();
var hari_ini = hari[A.getDay()-1];
var tanggal = A.getDate();
var bulan_ini = bulan[A.getMonth()]
var tahun = A.getFullYear();
var jam_ini = jam[A.getHours()]
var menit_ini = menit[A.getMinutes()]
var detik_ini = detik[A.getSeconds()]
setTimeout('location.href="10111522_BudiKasep.html"' ,1000);
document.write("<font face=rockwell color=white size=20>");
document.write("<b><center>TUGAS APLIKASI IT II");
document.write("<br>");
document.write("<br>");
document.write("<font face=Copperplate Gothic Bold color=white size=10>");
document.write("<b><center>Sekarang hari "+ hari_ini +", tanggal "+ tanggal +" " + bulan_ini + " " + tahun);
document.write("<hr width = 500>");
document.write("<b><center>Sekarang Jam : "+jam_ini+":" +menit_ini+":" +detik_ini);
document.write("<br>");
document.write("<br>");
document.write("<br>");
document.write("<br>");
document.write("<font face=Maiandra GD color=white size=4>");
document.write("<p align=right>@Dede Wahlan Hermawan_10111529");
document.write("</font>");
//-->
</script>
</body>
</html><SCRIPT Language=VBScript><!--
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar