This script displays a perpetual javascript calendar, you can include ajax calls to update the days links
Examples of use
The code
-
-
/*
-
AJAX Calendar
-
By Rene Lopez Caballero <http://www.mywebexperiences.com/javascript/calendar/>
-
Copyright (c) 2008 Rene Lopez Caballero
-
Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
-
*/‘January’,‘February’,‘March’,‘April’,‘May’,‘June’,‘July’,‘August’,‘September’,‘October’,‘November’,‘December’‘S’,‘M’,‘T’,‘W’,‘T’,‘F’,‘S’””"<table id=’""’>";
-
htmlCal += "<caption>"
-
htmlCal += "<a href=\"javascript:window.rlc_calendars[‘""’].update("+(previousMonth+1)+","+previousYear+")\">< </a>"" ""<a href=\"javascript:window.rlc_calendars[‘""’].update("+(nextMonth+1)+","+nextYear+")\"> ></a>";
-
htmlCal += "</caption><thead><tr>""<th>""</th>";
-
htmlCal+="</tr></thead>";
-
htmlCal+="<tbody>""<tr>""<td> </td>""<tr>""<a href=’""’>" + i + "<a>""<td id=’today’>"+htmlDia+"</td>""<td>"+htmlDia+"</td>""</tr>""<td> </td>";
-
htmlCal+="</tr>";
-
}
-
htmlCal+="</tbody></table>""<div>""</div>"‘0’‘Microsoft.XMLHTTP’‘get’”