<html>
<head>
<script type="text/javascript">
function JSclock()
{
var time=new Date();
var hour=time.getHours();
var min=time.getMinutes();
var second=time.getSeconds();
var temp=""+((hour>12) ? eval(hour-12) : hour);
temp+=((min<10) ? ":0" : " : ") + min;
temp+=((second<10) ? ":0" : " :")+second;
temp+=((hour>=12) ? "pm" : "am");
document.getElementById("currentTime").innerHTML=temp;
setTimeout("JSclock()",1000);
}
</script>
</head>
<body onload="JSclock()">
<span id="currentTime"></span>
</body>
</html>
show time with javascripts code, javascript code, time giving javascript code
Subscribe to:
Post Comments (Atom)
-
Why do niggers wear wide brimmed hats? So birds won't shit on their lips. How do you stop black kids from jumping on your bed? Put Velcr...
-
php, tutorial, sql, video, css, user, login, cookies, lifeg0eson666, marcus, recck, youtube, online, science, A PHP Tutorial creating a User...
-
Building a CMS with PHP and MYSQL Pat 2 video, php tutorials video, php and mysql to make cms video
No comments:
Post a Comment