﻿var today=new Date();var strDate=(" "+(today.getMonth()+1)+"月"+today.getDate()+"日");var n_day=today.getDay();switch(n_day)
{case 0:
{strDate=strDate+"  <font color=red>星期日</font> "
}break;case 1:
{strDate=strDate+"  星期一 "
}break;case 2:
{strDate=strDate+"  星期二 "
}break;case 3:
{strDate=strDate+"  星期三 "
}break;case 4:
{strDate=strDate+"  星期四 "
}break;case 5:
{strDate=strDate+"  星期五"
}break;case 6:
{strDate=strDate+"  <font color=red>星期六</font> "
}break;case 7:
{strDate=strDate+"  <font color=red>星期日</font> "
}break;}document.write(strDate);