Javascript Clock
Day Clock
Add this Javascript Clock to Favorites
Calendar
 |
February 2012 |
 |
| |
|
|
1 |
2 |
3 |
4 |
| 5 |
6 |
7 |
8 |
9 |
10 |
11 |
| 12 |
13 |
14 |
15 |
16 |
17 |
18 |
| 19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 26 |
27 |
28 |
29 |
|
|
|
|
|
Web digital clock hands and desktop clock, large clock, pendulum clock kits, clock display, clock timer, clock watch, modern clock pictures, clocks...
|
Javascript Clock
JavaScript Clock Script
<html> <head> <title> Javascript Clock </title> <meta name="Robots" content="all, follow"> </head> <body bgcolor="white" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF" onload="start()"> <script language="JAVASCRIPT"> <!-- var show_time=false; var timerID=null; function stop(){ if (show_time){ clearTimeout(timerID); document.clock.date_time.value=" "; } show_time=false; } function start(form){ var today=new Date(); var display_value =" " + today.getHours() if(today.getMinutes() < 10){ display_value+=":0" + today.getMinutes(); } else{ display_value+=":" + today.getMinutes(); } if (today.getSeconds() < 10){ display_value+=":0" + today.getSeconds(); } else{ display_value+=":" + today.getSeconds(); } if(today.getHours()>=12){ display_value+=" " /* Here we have a variable called mygreeting where you can store somthing like this: mygreeting ="Good Morning!"; */ } else{ display_value+=" " /* Now set mygreeting to: mygreeting ="Good Afternoon!"; */ } display_value += "day" + today.getDate() + ". " + (today.getMonth()+1) + ". " + today.getYear(); document.clock.date_time.value=display_value; timerID=setTimeout("start()",100); show_time=true; /* Here have an alert() method do the following: alert(mygreeting); */ } --> </script> <form name="clock"> <div align="center"> <center> <input type="text" name="date_time" size="26" style="background-color: #FFFFFF; text-align: center; font: 10pt Verdana, Arial; border: 1px solid white"> </p> </center> </div> </form> </body>
</html>
|
|
|
|