<script>
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 2000) ? myyear : 1900 + myyear;
</script>
<div id=date style="display:none">日历<input type=button onclick="form1.date_1.value=year+'年'+mymonth+'月'+myday+'日';date.style.display='none';"></div><form name=form1>
<input>
<input name=date_1 onFocus='date.style.display="";'>
</form>还好没高手枪了去。
调试通过
js你可以写在你的asp页里。
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 2000) ? myyear : 1900 + myyear;
</script>
<div id=date style="display:none">日历<input type=button onclick="form1.date_1.value=year+'年'+mymonth+'月'+myday+'日';date.style.display='none';"></div><form name=form1>
<input>
<input name=date_1 onFocus='date.style.display="";'>
</form>还好没高手枪了去。
调试通过
js你可以写在你的asp页里。
希望你的问题能得以解决。
可以浏览http://mlzboy.jahee.com/diary2/cal.htm
关于在日历中如何使用,还请根据本人的页面,举个实例,是不是在每个单元格都要写上id以及调用函数
=====================================
对调用函数我已经写出
你稍加修改就可以了
http://community.csdn.net/Expert/topic/3761/3761994.xml?temp=.4951593