腾龙45mm f1.8 vc价格:高人,请指教

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 03:04:56
ASP的问题,关于时间的一段代码错了
但不知错在哪
<html>
<head>
<script language="JavaScript">
var strTime;
var strDate;
function webClock()
{
var dNow=new Date();
var dHours=dNow.getHours();
var dMinutes=dnow.getMinutes();
var dSeconds=dNow.getSeconds();
strTime=dHours;
strTime+=((dMinutes<10)?":0":":")+dMinutes;
strTime+=((dSeconds<10)?":0":":")+dSeconds;
clock.time.value=strTime;

var dDate=dnow.getDate();
var dMonth=dnow.getMonth()+1;
var dYear=dnow.getYear();
strDate=dMonth;
strDate+=((dDate<10)?"/0":"/")+dDate;
strDate+="/"+dYear;
clock.date.value=strDate;
setTimeout("webClock()",1000);
}
</script>
<title></title>
</head>
<body onload="webClock()">
<form name="clock">
时间:<input type="text" name="time" size="10"><br>
日期:<input type="text" name="date" size="10"><br>
</form>
</body>
</html>
要怎么样修改呢

晕这那是asp的问题啊,这是一个java script 的问题啊?
你的程序里没有输出程序啊,所以网页上什么都不会显示的啊