Pages

Friday, May 11, 2012

Javascript Clock

Javascript
<script type="text/javascript">
function my_clock() {
input = document.getElementById('input');
d = new Date();
h = d.getHours();
m = d.getMinutes();
s = d.getSeconds();
if(h<10){
h = "0"+h;
}
if(m<10){
m = "0"+m;
}
if(s<10){
s = "0"+s;
}
time = (h + ":" + m + ":" + s)
input.value = time;
setTimeout("my_clock()", 1000);
}
</script>
HTML
Function called in the onload event of body, so whenever page loaded clock will be running.
<body onload="my_clock()">
<input type="text" disabled="disabled" id="input" />
</body>

Tuesday, May 8, 2012

'Satyamev Jayate' The real Reality

As we all know this is the decade of Reality shows. But here Aamir Khan and his crews proved that reality shows are not only a part of entertainment but it is also a focus to the real life. The show started with the shocking lives of the mothers who struggled in life only because of the reason they gave birth to a Girl Child. While hearing their talk the first thing we have to think that, this is happening in a country which is richest by its Culture!. have to think about it!
However when all other actors and actresses becoming the celebrities in the entertaining reality shows and biggest extravaganza IPL, one has switched this light. Special congrats to the crews!