Javascript – Countdown Clock

I found a useful Javascript countdown clock written by Robert Hashemian and modified by Munsifali Rashid. Download the countdown.js @ JavaScript Countdown/Count-up Timer/Clock/Ticker for Web Pages and try the following example.

<html>
  <head>
    <title>Countdown</title>
    <script language="javascript" src="countdown.js"></script>
    <script language="javascript">
      var cd1 = new countdown('cd1');
      cd1.Div			= "clock1";
      cd1.TargetDate		= "11/7/2011 12:00 AM";
      cd1.DisplayFormat	= "%%D%% days, %%H%% hours, %%M%% minutes, %%S%% seconds until event Tinyan's birthday";
    </script>
  </head>
  <body>
    <div id="clockwrapper"><div id="clock1">[clock]</div></div>
    <script language="javascript">
      <!--
      cd1.Setup();
      //-->
    </script>
  </body>
</html>

 

Done =)

Reference: JavaScript Countdown/Count-up Timer/Clock/Ticker for Web Pages

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.