Home
Javascript Calender
copy sample code:
Copy full javascript:
function setStyle(id,sty { id.style[style] = va } f unction opacity(el,opac { setStyle(el,"fil setStyle(el,"-mo setStyle(el,"-kh setStyle(el,"opa } f unction calendar() { var date = new D var day = date.g var month = date var year = date. if(year<=200) { year += } months = new Arr days_in_month = if(year%4 == 0 & { days_in_ } t otal = days_in_ var date_today = beg_j = date; beg_j.setDate(1) if(beg_j.getDate { beg_j=se } beg_j = beg_j.ge document.write(' document.write(' week = 0; for(i=1;i<=beg_j { document week++; } f or(i=1;i<=total { if(week= { } i f(day== { } else { } week++; if(week= { } } f or(i=1;week!=0; { document week++; if(week= { } } document.write(' opacity(document return true; }
Copy full Css:
.cal_calendar { border:1px solid padding:1px; background-color width:300px; margin:auto; height:246px; background-image } .cal_calendar th { border:1px solid background-color width:36 } .cal_calendar td { border:1px solid background-color text-align:cente width:36 height:3 } .cal_today { color:#ff0000; font-wei } .cal_days_bef_aft { color:#5a779e; }
Copy for index
Log in
Pair of Vintage Old School Fru