劳驾各位大哥指导指导小弟,小弟感恩大德!!!!!!!!!
<HTML>
<HEAD>
<TITLE>day</TITLE>
</HEAD>
<BODY BGCOLOR="blue">
<input type=button name=cf value="今天是星期几" onclick="day()">
<script language="javascript"><!--
function day(){
now=new Date()
today=now.getDay()
switch(today)
{
case "0" :alert("今天是星期日"
;
case "1" :alert("今天是星期一"
;
case "2" :alert("今天是星期二"
;
case "3" :alert("今天是星期三"
;
case "4" :alert("今天是星期四"
;
case "5" :alert("今天是星期五"
;
case "6" :alert("今天是星期六"
;
}
}
//-->
</script>
</BODY>