Display The Time

Display the current time on your site.

About This Script

Paste the code anywhere on your page you would like it to appear.

Demo

Code

<script> (function(){ function updateDate() { var now = new Date(); var h = now.getHours(); var m = now.getMinutes(); var s = now.getSeconds(); m = padTime(m); s = padTime(s); var str = h + ':' + m + ':' + s; var elements = document.getElementsByClassName('liveDate'); for (var i = 0, element; element = elements[i]; i++) { element.innerHTML = str; } } function padTime(i) { if (i < 10) { i = '0' + i; } return i; } setInterval(updateDate, 1000); })(); </script> <noscript>Clock provided by <a href="http://www.top-site-list.com">Top Site List Planet</a></noscript> <span class="liveDate"></span>
More scripts

Do you want to expose your site to millions?
Do you want to be ranked higher in Google?
Do you want to be known as the best site in your niche?

Then look no further. Add your site in 3 simple steps. Sign up, Add your site and Start receiving votes! It only takes 10 seconds!

Sign Up to Top Site List Planet Now!

Login with one of these social networks...

Sign in with FacebookSign in with TwitterSign in with Google+Sign in with Yahoo!Sign in with LinkedIn

or create an account with your email...

Login To An Existing Account