The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Clock

3 posters

Go down

Clock Empty Clock

Post by Raph95 January 20th 2008, 11:55 am

Is there any JavaScript clock, but to be just like this:
15:49:30
Without any stupid pictures and those.
Raph95
Raph95
Forumember

Male Posts : 798
Reputation : 3
Language : English, Serban, Croatian, Bosinan :)
Location : Nis, Serbia

http://TMNT-Forum.com

Back to top Go down

Clock Empty Re: Clock

Post by zinex January 20th 2008, 1:19 pm

Code:
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--Hide from old browsers
/*May be used if credited:
http://www.hitmill.com*/
var gizmo;
 
function stopClock(){
  clearTimeout(gizmo);
}
 
function yourClock(){
  var nd = new Date();
  var h, m;
  var s;
  var time = " ";
  h = nd.getHours();
  m = nd.getMinutes();
  s = nd.getSeconds();
  if (h <= 9) h = "0" + h;
  if (m <= 9) m = "0" + m;
  if (s <= 9) s = "0" + s;
  time += h + ":" + m + ":" + s;
  document.the_clock.the_time.value = time;
  gizmo = setTimeout("yourClock()", 1000);
}
Stop hiding -->
</SCRIPT>

</HEAD>
 
<BODY onLoad="yourClock()", onUnload="stopClock(); return true"> 
      <FORM NAME="the_clock">
<INPUT TYPE="text" NAME="the_time" SIZE="13">
</FORM>
 
</BODY>
</HTML>

seems to work when added to the homepage message box Smile
zinex
zinex
Hyperactive

Female Posts : 2804
Reputation : 93
Language : scotch och aye!
Location : Whats harder than a rock?!

http://asylum.forumotion.co.uk/forum.htm

Back to top Go down

Clock Empty Re: Clock

Post by leejonghun October 4th 2008, 3:07 pm

how do make everyone see clock at any pages (forum, home page, messeage...)
avatar
leejonghun
New Member

Posts : 4
Reputation : 0
Language : Tiếng Việt

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum