WebDesigner said:
Trevor L.,
Thank you sooo much for the tip! That calendar will work wonders
WebDesigner,
I have now finished writing the Calendar Generator in HTML.
When executed, it asks for:
Year (2006 is curently filled in as default)
Month
Day on which that month starts
Events for each day
(This is read as HTML code, so for a line break, add <br>. Other HTML tags could also be added if required.)
The result for July 2006 can be seen on my site on the Home Page | Event Calendar
The code to execute is
http://tandcl.homemail.com.au/calgen.html
This creates the code which has to be pasted into an HTML file and saved (in my case as 'calendar0607.html')
Once this code is created, there is no need to generate it again, which would lose all the existing entries.
It can be updated to add, delete or alter existing entries.
To update it, edit the file (e.g. calendar0607.html).
All entries are at the bottom of the HTML file in separate <div>s for each day, for example:
<!-- ENTER THE DETAILS FOR 01/07 HERE -->
<div class='daydiv' style='display:none' id='day01'>
01/07: 2006/2007 Financial Year Start<br>
(Australia)
</div>
(A search for 'ENTER THE DETAILS' would find the first one.)
The date (01/07: ) should remain, together with the space after the colon. (This is used when displaying the event.)
However, the details after the date can be amended. This is plain HTML code, so amend it as required.
I can't think of any more bells and whistles to add, but if I do I will alter calgen.html.
(One thought is to take out the text '01/07: ' etc. When displaying the event, the JS knows what day it is - by the id='day01', so
why write it into the <div>?)
If anyone thinks of any improvements, please let me know. I may post this to The Javascript Source because that is where I got the
code from in the first place, although now much amended.