
Originally Posted by
Raship
Dear Shadow Wizard,
I am novice, newbie or beginner in HTML and code designing.
Thats why I used blogger's WYSIWYG to create my website.
I post an article every alternate day. Now, I want to generate one counter for my blog which restart after every (48 Hours) 2 days.
I little know about scripts so please advise which code to put in head and which in body. Or blogger allows me to put html code as widget. So simple javascript is also an option.
Hear is my blog address just in case: sharadthakars.blogspot.com
Thanks in advance.
Hey sorry for the late reply, hope it's still relevant.
First, download the ZIP and put the CountDown.js file in the same directory as your other files.
Then in the head section, add this line:
Code:
<script type="text/javascript" src="CountDown.js"></script>
Now in your body have such HTML to define container element for the timer:
Code:
<div id="CountDownPanel"></div>
And finally to "create" the timer add this code to either the head or body, it doesn't matter:
Code:
<script type="text/javascript">
window.onload = function(event) {
ActivateCountDown("CountDownPanel", 100);
};
</script>
This will count 100 seconds for example.