Count Down


Count DownThis will let you count the number of days remaining to reach a given event : for instance days left before we reach the year 2007:

<script language="javascript">

function chrono()
{
jour=Date.parse("Jan 1, 2004 GMT") - Date.parse(new Date);
return(Math.round(jour/(24*60*60*1000)))
}
document.write("Still "+chrono()+" days before we reach the year 2007");

</script>

Of course it is possible to change this to any date you want.

Next you can see the example!



Author's URL: Kyscorp.com
JavaScript - An open source scripting language, it allows the creation of dynamic web page content. More JavaScript Tutorials: Featured Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org


Like us to: