* You may use and/or modify this script as long as you:
* 1. Keep my name and webpage mentioned
* 2. Don't use it for commercial purposes
* If you want to use this script without complying to the rules above, please contact me first at: marty@excudo.net
This calender gives you two options, either the use of a dropdown or, for the client to choose their date from a calendar.
The output is in UK / European standard of day/month/year so will not suit U.S. persons.
By copying the line: Choose your date: you can create further calenders, useful if you're wanting an in-date and out-date for booking a holiday or course.
Installation Instruction:
The javascript file here has to be put between the head tags.
All the stylesheet elements have to be copied to your own stylesheet file or saved to your folder, link here. Of course you can style them in your own flavour (but don't touch things like display-properties).
Put the complete table <table id="calenderTable"> directly below the <body> tag before any div or span.
You'll lastly need the image from the images folder saved to your images folder in root - htdocs or www/images/calender.png here.
With setYears (date, date) you can indicate what the range of years is that has to be used.
With showCalender you can indicate what the target element (input tag) is the value of the first argument, this, can not be changed. Don't touch it!
If you don't want to work with a target element, then put false as the second argument (so, without quotes)
If you do want to work with a target element, then the second argument should be the value of id=" " of that target element. It's best to use an id=" " because:
By default, this is the first one that is checked
When there's no id with that value, the value of a possible name is being searched for in the first available form. If the page has more than 1 form and it's located in the 2nd (or 3rd, etc), it won't be found.