Home > Web > Membuat Kalender dengan Javascript

Membuat Kalender dengan Javascript

Langsung aja, buat yang perlu listing toek membuat kalender dari javascript, ni diya listingnya :

<!–
var hariH  = new Array(7);
hariH[1]   = “Minggu”;
hariH[2]   = “Senin”;
hariH[3]   = “Selasa”;
hariH[4]   = “Rabu”;
hariH[5]   = “Kamis”;
hariH[6]   = “Jum’at”;
hariH[7]   = “Sabtu”;
var bulanB = new Array(12);
bulanB[1]  = “Januari”;
bulanB[2]  = “Februari”;
bulanB[3]  = “Maret”;
bulanB[4]  = “April”;
bulanB[5]  = “Mei”;
bulanB[6]  = “Juni”;
bulanB[7]  = “Juli”;
bulanB[8]  = “Agustus”;
bulanB[9]  = “September”;
bulanB[10] = “Oktober”;
bulanB[11] = “Nopember”;
bulanB[12] = “Desember”;
var hariini = new Date();
var hari    = hariH[hariini.getDay() + 1];
var bulan   = bulanB[hariini.getMonth() + 1];
var tanggal = hariini.getDate();
var tahun   = hariini.getYear();
var detik   = hariini.getSeconds()
var menit   = hariini.getMinutes();
var jam     = hariini.getHours();

function showtip(model, delay, text)
{
if (window.document.all&&window.document.readyState==”complete”)
{
window.document.all.tooltip.innerHTML='<marquee behavior=’+model+’ scrollamount=’+delay+’ scrolldelay=25>’+text+'</marquee>’
if(event.clientX > screen.width-200)
window.document.all.tooltip.style.pixelLeft=event.clientX+document.body.scrollLeft-(window.document.all.tooltip.style.pixelWidth+10)
else
window.document.all.tooltip.style.pixelLeft=event.clientX+document.body.scrollLeft+10
window.document.all.tooltip.style.pixelTop=event.clientY+document.body.scrollTop+10
window.document.all.tooltip.style.visibility=”visible”
}
}
function hidetip()
{
window.document.all.tooltip.style.visibility=”hidden”
}
document.write (“<div id=tooltip style=’position:absolute; visibility:hidden; clip:rect(0 150 50 0); width:150px;’></div>”)
//–>

  1. swordway
    31 May 2009 at 2:25 pm

    Kalo mau belajar pemrograman web,, di sini.
    http://www.w3schools.com/JS/
    http://jquery.com/

  2. 30 November 2009 at 4:57 am

    mbak kalau menyimpan filenya dengan extensi apa ??? , terus gimana memasukan kedalam web yang terbuat dari php tolong dijawab ini email saya alun4nungna@gmail.com

  3. tuyul
    9 February 2010 at 12:23 pm

    bodoh itu salah……

  4. 17 October 2010 at 6:26 am

    hem,,,,teu ngartos,,,,

  1. No trackbacks yet.

Leave a Reply

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: