-----Original Message-----
Can someone tell me how to insert a calendar page into a
website with FrontPage 2002? I want to include scheduled
events ona calendar that can be scrolled month-to-month
bu website users.
I have searched for some type of instruction, but can't
find one, even in FrontPage books.
The brute-force method is to simply create a 7-column HTML
table, type the days of the week at the top, type days of
the month into each cell, and then start entering events.
Make each month a separate Web page, and use hyperlinks
for point to the next and previous months.
More elegant is building a database of events. However,
now you need functions to add, change, and remove event
records, and a way to secure those functions.
To display a month, you lookup the day of week for the
first of the month, back off to the previous Sunday, and
then run a loop that increments the date by one day for
each iteration. Then, within each iteration:
o If the day of the week is Sunday, write a "<tr>" tag.
o In any case, write a pair of <td> and </td> tags
containing the day-of-the-month number and any
events the database contains for that date.
o If the day of the week is Saturday, write a </tr> tag.
Also, if the month is greater than the "current" month
(i.e. you're displaying October, 2003 and the date
reaches Saturday, November 1) exit the loop.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*