Java Script sederhana untuk Kalender

<html>
<head>
<title>tanggal</title>
<script language=”javascript” type=”text/javascript”>
var d = new Date();
var hari = new Array(“Minggu”,”Senin”,”Selasa”,”Rabu”,”Kamis”,”Jum’at”,”Sabtu”);
var b = new Array(“Januari”,”Februari”,”Maret”,”April”,”Mei”,”Juni”,”Juli”,”Agustus”,”September”,”Oktober”,”November”,”Desember”);
var TODAY = hari[d.getDay()]+”, “+d.getDate()+” “+b[d.getMonth()]+” “+d.getFullYear(); </script>
</head>

<body>

untuk mencetak tanggal ketikkan sebagai berikut:

<div id=””><script>document.write(TODAY);</script>
</div>
</body>

</html>

About Iin aryani

I don't wanna be a "Copycat" but, something they need to copy.

Posted on 17 January 2010, in Website. Bookmark the permalink. Leave a comment.

Komentar untuk penulis

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: