Friday, June 15, 2012

Add Cool Time Clock Javascript to Blogger/Blogspot.


Add Cool Time Clock Javascript to Blogger/Blogspot.



Step 1: Login to your Blogger Dashboard and go to Design >> & Page Elements.

Step 2: Click on 'Add a Gadget' on the sidebar.

Step 3: Select 'HTML/Javascript' and add the one of code given below.

If You Want Copy This Code Click Here.

<script type="text/javascript">
<!--
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes < 10){
minutes = "0" + minutes
}
document.write(hours + ":" + minutes + " ")
if(hours > 11){
document.write("PM")
} else {
document.write("AM")
}
//-->
</script>

Step 4: Now Click on Save "Html Java Script".

You are done..

Thanks.... Like Us.... Share Us.....

0 comments:

Post a Comment

Make sure to click the "Subscribe By Email" link below the comment for to be notified of follow up comments and replies..