Hi guys i am back with yet
another tutorial
on javascript
First of all create an html page say TIME.HTML
open it with your favourite text editor ,
PASTE THE FOLLOWING CODE
<SCRIPT LANGUAGE=“JavaScript”>
<!–
function showFilled(Value) {
if(Value>9)
{
return Value;
}
else{
return ’0′+Value;
}
}
function StartClock24() {
TheTime = new Date;
document.getElementById(‘time’).innerHTML =
‘The Time Is: <b>’+showFilled(TheTime.getHours()) +
“:” + showFilled(TheTime.getMinutes()) +
“:” + showFilled(TheTime.getSeconds());
setTimeout(“StartClock24()”,1000)
}
//–>
</script>
<body onload= StartClock24() >
<div id=’time’></div>
SIMPLE ![]()
ANY doubts CONTACT me
Incoming search terms:
- clock html code (1)
- date javascript showfilled (1)
- flip flop timer jquery (1)
- spreadsheet_excel_writer excel2010 (1)
You will also be interested in ,
- MD5 Function and Unique ID in php
- Javascript setTimeout() Tricks
- Displaying or changing images each day
- .htaccess some facts and rules
- How to install XAMPP
- Beautiful Christmas countdown timer complete webpage with css download free
- Finding The Size Of Images Using Javascript
- Simple message slideshow news ticker using javascript
- Extracting URL parameters with Javascript
- Get youtube video screenshot using simple php and javascript

