DHTMLX Docs & Samples Explorer

Set holidays to Calendar

You can set holidays to highlight them in the Calendar with specified css class.

Source
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxcalendar.css">
<script>
window.dhx_globalImgPath = "../../codebase/imgs/";
</script> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxcalendar.js"></script> <script>
var mCal;
 
window.onload = function() {
    mCal = new dhtmlxCalendarObject('dhtmlxCalendar', true);
    mCal.setHolidays("01.01,2009.08.24,09.01");
}
</script> <table border="0" cellpadding="5" > <tr> <td ><div id="dhtmlxCalendar"></div></td> </tr> </table>