ज्ञानसागर परिवार में आपका हार्दिक अभिनंदन है !! किसी भी सुझाव,विचार,विमर्श के लिए संपर्क करे 8802939520


How To Insert Digital Date & Time In Google Blogger ( Blogspot ) By Saransh Sagar ?? | Gyansagar ( ज्ञानसागर )


How To Insert Digital Date & Time In Blogger ?


Open Layout section. Click on Add a Gadget option where you want to show Digital Date & Time. Click on HTML/Java Script option and paste the below code which is orange in colour.

                                 

 <script type="text/javascript">
tday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
tmonth=new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function GetClock(){

var d=new Date();
var nday=d.getDay(),nmonth=d.getMonth(),ndate=d.getDate(),nyear=d.getFullYear();
var nhour=d.getHours(),nmin=d.getMinutes(),nsec=d.getSeconds(),ap;

if(nhour==0){ap=" AM";nhour=12;}

else if(nhour<12){ap=" AM";}
else if(nhour==12){ap=" PM";}
else if(nhour>12){ap=" PM";nhour-=12;}

if(nmin<=9) nmin="0"+nmin;

if(nsec<=9) nsec="0"+nsec;

document.getElementById('clockbox').innerHTML=""+tday[nday]+", "+tmonth[nmonth]+" "+ndate+", "+nyear+" "+nhour+":"+nmin+":"+nsec+ap+"";

}

window.onload=function(){

GetClock();
setInterval(GetClock,1000);
}
</script>
<div id="clockbox"></div>

Paste this code in HTML/Java Script box and then save it.
Refresh the window, Now you will see Digital Date & Time shows present Date & Time.



For More Stuff Like This, Subscribe Us To Get Latest Post Notification To Your Mail Address. 

ऐसे ही अन्य लेख अपने Gmail अकाउंट में प्राप्त करने के लिए अभी Signup करे और पाये हमारे ताजा लेख सबसे पहले !!


email updates



For more post like this, Enter your Email in Subscription Form and get our latest blog post to you E-mail !

No comments

Powered by Blogger.