Program hitung mundur, Nyepi day


var today = new Date;
var Future0 = new Date;
ThisYear = 2004;
var FutureMonth = 2;
var FutureDate = 21;
var faraevent = “Nyepi Day”;
Future0.setMonth(FutureMonth, FutureDate);
Future0.setFullYear(ThisYear);
today1 = Date.parse(today);
future1 = Date.parse(Future0);
secleft = future1 – today1;
miliday = 24 * 60 * 60 * 1000;
daysleft = secleft/miliday;
daysleftint = Math.round(daysleft);
if (daysleftint > 1)
document.write(“There are “, daysleftint, ” days until “, faraevent , “! “);
else if (daysleftint == 1)
document.write(faraevent, ” is tomorrow! “);
else if (today1 == future1)
document.write(faraevent, ” is today! “);

Perihal BroFahroe
Aremania - RF Engineer - ScorpioZ Rider - Canon 450D User

2 Responses to Program hitung mundur, Nyepi day

  1. teznach mengatakan:

    wahh kebetulan saya sedang cari script mengenai hitung mundur..
    namun bisa kasih batuan jika saya hanya membutuhkan hitung mundur dg model .bat saja… contoh untuk hitung mundur 60 hari
    terima kasih sebelumnya

    • fahroe mengatakan:

      .bat ?? itu program dos ya… aduh mohon maaf ane kaga faham🙂

Berikan Komentar :

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: