I have read the following message from "Dennis M. Marks"
<de******@domain.invalid>
and have decided to lend my vast knowledge.
The writer said:
I have read the following message from "McKirahan" <Ne**@McKirahan.com>
and have decided to lend my vast knowledge.
The writer said: "Dennis M. Marks" <de******@domain.invalid> wrote in message
news:210220041628260701%de******@domain.invalid... Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.
I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.
There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.
Please test it and let me know if you find any problems.
You might want to add the following line after the first "for" statement:
if (i==6&&daily>monthDays) break;
This will suppress the last line when it doesn't contain any dates.
and my reply is:
I thought about that but decided to keep the calendar the same size
always. Thanks anyway. Maybe I'll get tired of the current calendar and
change it later.
--
and my reply is:
Ok. I took your advice. "i==6&&" is not required. At that point in the
loop it is always the first day of the week. If I'm past the last day
of the month then "break" and skip 1 or 2 weeks. Don't forget If
February starts on a sunday in a non leap year there will only be 4
weeks.
BTW: The current code does not allow the date to be changed after the
display and it is in a "div" rather that a table cell.
Can anyone find a smaller script for a monthly calendar? :-)
--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----