<!doctypehtmlpublic"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>自动时间输入</title>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<metaname="title"content=""/>
<metaname="author"content=""/>
<metaname="subject"content=""/>
<metaname="language"content="en"/>
<metaname="keywords"content=""/>
</head>
<body>
<scriptlanguage="JavaScript"type="text/javascript"src="time.js"></script>
<!--上面的代码js存为一个文件.js然后在属性里设置一下-->
<!--today表示是不是自动写入当天日期-->
<!--check表示是不是检测输入的时间是否符合要求-->
明天出发:<inputtype='text'today="+1"auto=truechecktime=true>试试:清空,输入一个2就知道了
<br/>
三天回来:<inputtype='text'today="+4"auto=truechecktime=true>试试:输入2会变成2006-
</body>
</html>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>自动时间输入</title>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<metaname="title"content=""/>
<metaname="author"content=""/>
<metaname="subject"content=""/>
<metaname="language"content="en"/>
<metaname="keywords"content=""/>
</head>
<body>
<scriptlanguage="JavaScript"type="text/javascript"src="time.js"></script>
<!--上面的代码js存为一个文件.js然后在属性里设置一下-->
<!--today表示是不是自动写入当天日期-->
<!--check表示是不是检测输入的时间是否符合要求-->
明天出发:<inputtype='text'today="+1"auto=truechecktime=true>试试:清空,输入一个2就知道了
<br/>
三天回来:<inputtype='text'today="+4"auto=truechecktime=true>试试:输入2会变成2006-
</body>
</html>