What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript Localtime

JavaScript Localtime
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: JavaScript Localtime
That's easy to find with a quick Google Search

EDIT: First result gave this:

code:
<script language="JavaScript">

<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();

   document.theClock.theTime.value = ""
                                   + tDate.getHours() + ":"
                                   + tDate.getMinutes() + ":"
                                   + tDate.getSeconds();
   
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}

//-->

</script>
<body onload="StartClock()" onunload="KillClock()">
<center><form name="theClock">
<input type=text name="theTime" size=8>
<form></center>

This post was edited on 04-11-2007 at 02:38 PM by Ezra.
[Image: 1-0.png]
             
04-11-2007 02:36 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript Localtime - by Eddie on 04-11-2007 at 01:42 PM
RE: PHP Localtime - by Ezra on 04-11-2007 at 01:49 PM
RE: PHP Localtime - by Eddie on 04-11-2007 at 01:51 PM
RE: PHP Localtime - by absorbation on 04-11-2007 at 01:55 PM
RE: PHP Localtime - by markee on 04-11-2007 at 02:07 PM
RE: PHP Localtime - by Eddie on 04-11-2007 at 02:23 PM
RE: PHP Localtime - by Ezra on 04-11-2007 at 02:24 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:25 PM
RE: JavaScript Localtime - by Ezra on 04-11-2007 at 02:36 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:39 PM
RE: JavaScript Localtime - by Ezra on 04-11-2007 at 02:48 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:50 PM
RE: JavaScript Localtime - by markee on 04-11-2007 at 02:59 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 03:33 PM
RE: JavaScript Localtime - by Matti on 04-14-2007 at 02:05 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On