当前位置: 代码迷 >> JavaScript >> 网页上展示日历(js)
  详细解决方案

网页上展示日历(js)

热度:29   发布时间:2013-04-12 18:33:11.0
网页上显示日历(js)
<head runat="server">
    <title></title>
   <%-- 用JS/connotation.js方法时要在下面写两段代码,并且在文本框下要有一个层用来放日历--%>
    <script src="JS/connotation.js" type="text/javascript"></script>
    <script type="text/javascript">
        var s = new Calendar('s');
        document.write(s);
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <input type="text" onclick="s.showMoreDay=true;s.show(this)" />
    <asp:TextBox ID="TextBox1" runat="server" onfocus="s.showMoreDay=true;s.show(this)"></asp:TextBox>
    <div style="height:260px">
   
    </div>
    </div>
  相关解决方案