<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
Webocreation
- Internship Report at a Leading Bank: Insights, Learning, and Key Takeaways - 9/29/2024 - Rupak Nepali
- 6 Core AI/ML Development Services Challenges and Their Solutions - 9/26/2024 - Rupak Nepali
- Boost Your Institution’s Communication through the GirikSMS App - 9/23/2024 - Rupak Nepali
- Opencart 4 Server Setup, SSL, FTP, Email, Database connection - 9/6/2024 - Rupak Nepali
- Domain Registration for eCommerce website - 9/5/2024 - Rupak Nepali
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment