(数字)自动获取的时间;
var day =1;
var my = new Date(year,month-1,day);
var k=1; var j=1; var theday=1;//日期
var max; var temp; var tempday;//这个月第一天的星期 document.write("<d
3.查看某年的月历源程序
for(k=0;k<6;k++) { document.write ("<tr>");
for(j=0;j<=6;j++) {
document.write ("<td height='23' width='39'>");
if(j>=(tempday)) { tempday=0;//设置为最小,相当于取消判断条件 if(theday<=max) {
if(j==0)
emp=my.getDate();
my.setDate(1); t
empday=my.getDay();//返回第一天是星期几
my.setDate(temp);
switch ((my.getMonth()+1
什么三个部分定义?什么意思?看不懂你问的