Clock
3 posters
Page 1 of 1
Clock
Is there any JavaScript clock, but to be just like this:
Without any stupid pictures and those.15:49:30
Re: Clock
- 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
Re: Clock
how do make everyone see clock at any pages (forum, home page, messeage...)
leejonghun- New Member
- Posts : 4
Reputation : 0
Language : Tiếng Việt
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum