remino
Members
-
Joined
-
Last visited
Reputation Activity
-
remino reacted to programers1627 in digital clock<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
//to add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('clock').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()', 500)
}
function checkTime(i)
{
if (i<10)
{ i="0" + i}
return i
}
window.onload=startTime;
</script>
<div id="clock" style="font-size:35px;color:#00aaff;text-shadow:2px 2px 2px blue;
border:3px groove blue;background-color:#aaffaa; width:195px; height:40px"></div>
-
remino reacted to Brock in AJAX Form SubmitOookay! (: If someone else knows if it's possible on the same page and how to do it I'd still be interested, but I'll separate the php for now.
Thanks for the help!