Dynamic title bar date-time clock

This code will place a dynamic and self-refreshing clock in the title of your web page
JavaScript

Just paste the following script into the ... of your page. There are no other set-ups needed.

<script language="JavaScript">
<!--

// ==========================
// (C) 2000 by CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

function doTheClock() {
   window.setTimeout( "doTheClock()", 1000 );
   t = new Date();
   if(document.all || document.getElementById){
      document.title = t.toString();
   }else{   
      self.status = t.toString();
   }
}

doTheClock()

//-->
</script>

Written by etLux - CodeLifter.com

Posted by fbrefere001 on Wednesday November 17, 2004