How to insert a digital clock?

Any problem with HTML can be discussed here.
Post Reply
Gyanu
Posts: 338
Joined: Mon Jul 30, 2007 2:03 pm
Contact:

How to insert a digital clock?

Post by Gyanu »

I had a script os the digital clock.

insert these code in ur website.

Code: Select all

<HTML>
<TITLE>Clock</TITLE>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}
function StartClock24() {
  TheTime = new Date;
  ****.clock.showTime.value = showFilled(TheTime.getHours()) + ":" + showFilled(TheTime.getMinutes()) + ":" + showFilled(TheTime.getSeconds());
  setTimeout("StartClock24()",1000)
}
//-->
</script>
<style type="text/css">
<!--
.input { border-style: none;
         font-family:Verdana,Arial,Helvetica,sans-serif;
	 font-size:8pt
}
-->
</style>
</head>
<BODY bgcolor="#FFFFFF" onLoad="StartClock24()">
[align=center]<form name=clock><input type=text name=showTime size=8 class=input>
  </form>
[/align]
</body>
</html>
After that bowse it.


Image
jasondsouza
Posts: 348
Joined: Thu Jan 12, 2006 8:24 pm
Contact:

Post by jasondsouza »

thank you for sharing a very nice script...
--jasondsouza
ME working on a very new site. (Coming soon)
Come to my web Site
njan
Posts: 7
Joined: Fri Jun 15, 2007 3:16 pm

Post by njan »

thanks a lot for inserting this thread
Post Reply