View Single Post
Old 11-05-2007, 05:43 AM   #1 (permalink)
john
Field Master
 
john's Avatar
 

Join Date: Sep 2007
Location: Europe - Greece
Posts: 324
iTrader: 1 / 100%
Hunter Bux: 18.00
john is a jewel in the roughjohn is a jewel in the roughjohn is a jewel in the roughjohn is a jewel in the rough
Default Add a simple Clock in your page

with this script you can add a simple clock in your page
Code:
<HTML>
<TITLE>Clock</TITLE>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}
function StartClock24() {
  TheTime = new Date;
  document.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()">
<center>
  <br>
  <br>
  <u><font face="Arial, Helvetica, sans-serif" size="4">Simple Java Clock</font></u><br>
  <br>
  <br>
  </font> 
  <form name=clock>
  <input type=text name=showTime size=8 class=input>
  </form>
</center>
</body>
</html>
john is offline   Reply With Quote