厦门seo网站建设费用,外贸公司取名,商盈网站建设,前端搜索网站引擎怎么做校历-山东科技大学网络安全与信息化办公室http://tech.sdust.edu.cn/wlfw/xl.htm
JavaScript var studyStart new Date(2021, 8-1, 30);//8-1 -1没有意义#xff0c;30代表30号#xff0c;2021年8月30号开始这个学期 var commonWeeks 19;//这个学期有多少周 var s…校历-山东科技大学网络安全与信息化办公室http://tech.sdust.edu.cn/wlfw/xl.htm
JavaScript var studyStart new Date(2021, 8-1, 30);//8-1 -1没有意义30代表30号2021年8月30号开始这个学期 var commonWeeks 19;//这个学期有多少周 var smallWeeks 0; var vocationWeeks 6;//寒暑假有多少周
var start new Date(studyStart.toUTCString()); start.add(d, -28);
var studyWeeks commonWeeks smallWeeks; var totalWeeks studyWeeks vocationWeeks;
var div $(#NavContainer); var html table border0 cellspacing0 cellpadding0 aligncentertr classnavtd周次/tdtd一/tdtd二/tdtd三/tdtd四/tdtd五/tdtd六/tdtd日/td/tr; var lastStyle m2; var now new Date(); now.setHours(0, 0, 0, 0); var type start.getMonth() 5 ? 寒:暑; var monthChanged true; var i -1; while (itotalWeeks) { var weekStart new Date(start.toUTCString()); weekStart.add(d, 7); //alert(weekStart.toString()); var isCurrentWeek (nowstart nowweekStart); var vocation studyWeeks (i1); html tr class\ (studyWeeks (i1) ? vocation : ) \td class\weekCount (isCurrentWeek ? weekCurrent : ) \ (vocation ? type (i1-studyWeeks) : (i-1?i1:)) /td; for(j0; j7; j) { var d start.getDate(); var firstStyle ; if (d2) { lastStyle lastStylem1?m2:m1; firstStyle firstDay; monthChanged 1; d 1/ strong (start.getMonth() 1) /strong; } html td class\ lastStyle (isCurrentWeek ? dayCurrentWeek : ) \div class\ (now start ? pastDate : ) firstStyle (!(now start) !(now start) ? today : ) (j4 || vocation? vocation : ) \ d /div /td; start.add(d, 1); } html monthChanged ? td rowspan2 class\month\ (start.getMonth()0?start.getFullYear()br /:) GetMonthName(start.getMonth() 1) 月/td : td/td; monthChanged false; html /tr; if (startstudyStart) { i; } } html /table; //alert(html); div.html(html).css(opacity, 1); // $(.pastDate).css(opacity, 0.3);