Click to See Complete Forum and Search --> : Creating a calendar for website - HELP
Please help me. I created a website for my sisters wedding. I have been looking for a javascipt or a calendar for day that I can user the will give me the following..
"Number fo day left before the wedding" then the wedding date and then the calendar counts down the number of day. I have been totally unsuccessful in locating this type of calendar. Could someone please help me with a javescript or a link to a calendar or a code or something..please help.
Thanks
Karen aka Zeta;)
gil davis
03-13-2003, 10:08 AM
http://javascript.internet.com/calendars/days-left.html
Gil,..thanks for your help.. But I must be mega dumb.. I followed the instruction..
I changed the coding to read.. day left before wedding
I changed the date..date of wedding is may 16, 2003.. and I get nothing.. could you please be so kind to send me an example on how I should change that coding
kmorrison@chubb.com
thanks
gil davis
03-13-2003, 11:37 AM
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Justin Smith (jsmith@polbox.com) -->
<!-- modified by Gil Davis 3-13-2003 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var wedding = new Date(2003, 4, 16);
var today = new Date();
var howlong = Math.ceil((wedding - today) / (24 * 60 * 60 * 1000));
// display day left
document.write("There " + ((howlong == 1) ? "is " : "are ") + howlong + " day" + ((howlong == 1) ? "" : "s") + " left before the wedding.");
// End -->
</script>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
</body>