Christmas Ornaments Lights Decorations Christmas

Countdown to Christmas Script

Javascript countdown to a date script.

View Your Shopping Cart
leftbg
Christmas OrnamentsChristmas Decorations Christmas Wreaths
rightbg
first you need the script

right click and save to download the countdown script file.

Christmas-Countdown.js

you can upload that file to your server and call it from anywhere inside the body tags of your document like this:

<script language="JavaScript" type="text/javascript" src="countdown.js"></script>

if you have a blog or otherwise can't upload the javascript to your server paste the full code anywhere between the body tags of your document:

<SCRIPT LANGUAGE = "JavaScript">

var now = new Date();

// set this value to the countdown date.

var then = new Date("December 25, 2009");

var gap = then.getTime() - now.getTime();

gap = Math.floor(gap / (1000 * 60 * 60 * 24));

document.write(gap);

</SCRIPT>

You can use this script to countdown to any date or holiday you choose by editting the "December 25, 2009" text to the event of your choice.

christmasforever accepts no responsibility or liability for the use or misuse of this script. it is provided free on an as is basis. it is a safe and working script as shown. any alterations to the code are your responsibility.



Copyright 2009. christmas-forever.com. website design by savatoons web design.