Ketibaan Masa


Copy skrip atau download.
<!-- ONE STEP TO INSTALL DAYS TILL DATE: 

   1.  Add the first code to the BODY of your HTML document 
   2.  Just enter a date and description and the script is ready!  --> 

<!-- STEP ONE: Add the first code to the BODY of your HTML document  --> 

<BODY> 

<SCRIPT LANGUAGE="JavaScript"> 
<!-- Original:  Alan Palmer --> 
<!-- Web Site:  http://www.jsr.communitech.net --> 

<!-- This script and many more are available free online at --> 
<!-- The JavaScript Source!! http://javascript.internet.com --> 

<!-- Begin 
var date = new Date("January 1, 2000"); 
var description = "the year 2000"; 
var now = new Date(); 
var diff = date.getTime() - now.getTime(); 
var days = Math.floor(diff / (1000 * 60 * 60 * 24)); 
document.write("<center><h3>") 
if (days > 1) { 
document.write(days + " days until " + description); 

else if (days == 1) { 
document.write("Only two days until " + description); 

else if (days == 0) { 
document.write("Tomorrow is " + description); 

else { 
document.write("It's" + description + "!"); 

document.write("</h3></center>"); 
// End --> 
</script> 

<!-- STEP TWO: Enter the date and description!  --> 

<!-- Script Size:  1.16 KB  --> 
 

 
1