<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页里。

解决方案 »

  1.   

    调了好久。层里的asp页里的应该用frame来显示出来。然后在里面的input上就要用parent了。<div id=date style="display:none">日历<input type=button onclick="parent.form1.date_1.value=year+'年'+mymonth+'月'+myday+'日';date.style.display='none';"></div>
    希望你的问题能得以解决。
      

  2.   

    http://community.csdn.net/Expert/topic/3761/3761994.xml?temp=.4951593
      

  3.   

    日历的文件是http://mlzboy.jahee.com/diary2/cal.asp
    可以浏览http://mlzboy.jahee.com/diary2/cal.htm
    关于在日历中如何使用,还请根据本人的页面,举个实例,是不是在每个单元格都要写上id以及调用函数
      

  4.   

    是不是在每个单元格都要写上id以及调用函数
    =====================================
    对调用函数我已经写出
    你稍加修改就可以了
    http://community.csdn.net/Expert/topic/3761/3761994.xml?temp=.4951593