Your Ad Here

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
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
Share print this page subscribe to newsletter subscribe to rss

JavaScript - An open source scripting language, it allows the creation of dynamic web page content. More Web Programming: Most Popular Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org

No comments yet...
Add comments to "Count Down"

Captcha