![]() |
here's a quick javascript to add to the calendar_enterevent template so that the day of the month dropdown is adjusted when you change the month or year so that days like Feb 31 aren't available choices. it even recognizes leap years.
goto it from http://javascript.internet.com and adjusted it to work with vb open the template add this right before the </head> tag PHP Code:
PHP Code:
done |
make sure you remove the space in javascript
|
can u be more specific on where to add the 2nd javascript code plz?
|
find these 2 tags
<select name="month" tabindex="1"> and <select name="year" tabindex="3"> change them so they look like this <select name="month" tabindex="1" onchange="javascript:ChangeOptionDays()"> and <select name="year" tabindex="3" onchange="javascript:ChangeOptionDays()"> hope that is clearer |
This hack will be incorrect in February 2100 :D
Nice template mod, even though I don't use the calandar much. |
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|