DHTMLX Docs & Samples Explorer

Tooltips with Popup

Tooltips set for March 8, 10, 19-22
Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxcalendar.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
    <link rel="stylesheet" type="text/css" href="../../../dhtmlxPopup/codebase/skins/dhtmlxpopup_dhx_terrace.css"/>
    <script src="../../../dhtmlxPopup/codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxcalendar.js"></script>
    <script src="../../../dhtmlxPopup/codebase/dhtmlxpopup.js"></script>
    <style>
        #calendarHere {
            position: relative;
            height: 250px;
        }
    </style>
    <script>
var myCalendar;
 
function doOnLoad() {
 
    myCalendar = new dhtmlXCalendarObject("calendarHere");
    myCalendar.hideTime();
    myCalendar.show();
    myCalendar.setDate("2013-03-01");
    myCalendar.setHolidays("2013-03-08");
    myCalendar.setHolidays("2013-03-19,2013-03-20,2013-03-21,2013-03-22");
 
    myCalendar.setTooltip("2013-03-08", "International Women's Day", true, true);
    myCalendar.setTooltip("2013-03-19,2013-03-20,2013-03-21,2013-03-22", "Going fishing to Vindafjord :)<br>Tremble trout!", true, true);
    myCalendar.setTooltip("2013-03-10", "Just a usual date, " + myCalendar.getFormatedDate("%l, %F %d", new Date(2013, 2, 10)), true, true);
}
</script> <div style="margin-bottom: 20px;">Tooltips set for March 8, 10, 19-22</div> <div id="calendarHere"></div>