Karucik, you are forcing two additional BODY tags into an HTML page that already has one.
Because of that, you are calling function getSeconds() twice.
The code you supplied also included a jQuery call to invoke function getSeconds().
This is better replace with:
Code:
<script>window.onload = function () {
getSeconds();
}
</script>
I have parsed out your code away from the display HTML so you have a Placeholder with the JS/CSS in its Head and the web display in its Body.
I removed the need for jQuery.
JSCSS-Countdown Timer.xar
Acorn
P.S. You would be better adding extra variables for the HH:MM:SS part of this statement:
var countertime = new Date(nowDate.getFullYear(),nowDate.getMonth(),nowD ate.getDate(),
15,36,40);
Bookmarks