View Full Version : holiday script


indianbean
04-22-2003, 01:49 AM
Has anyone ever heard of a holiday script? You know something that would kind of serve as a reminder to the next holiday.
Or maybe it would have to be a count down script that would have to be changed before every holiday? I can remember Christmas and New Years and July 4th but some of the others escape me. I found some countdown scripts at www.dynamicdrive.com such as these

http://search.freefind.com/find.html?id=6299074&pageid=r&mode=ALL&n=0&query=countdown+script

Perhaps a count down script might have to suffice eh?

Thanks, Will

Marianne
04-22-2003, 07:58 AM
Here's the script:

<script language="JavaScript">
<!--

var now = new Date();
var then = new Date("November 11, 2003");
var left = then.getTime() - now.getTime();
var days = Math.floor(left / (1000 * 60 * 60 * 24));
var wks = Math.floor(left / (1000 * 60 * 60 * 24 * 7));
var mths = Math.floor(left / (1000 * 60 * 60 * 24 * 30.41666666667));
document.write( days )
// -->
</script>
days until my birthday!



Fill in the date and it should work.
Good luck.

indianbean
04-22-2003, 11:30 AM
That countdown date script worked nicely, thanks. Its Sorry, but this is considered advertising. if you'd like to see it.
That calendar page would be ideal for that, but a bit pricey.
One of those full page calendars would be the way to go if one was really into it.

Thanks again, :)