当前位置: 代码迷 >> JavaScript >> 老掉牙裴帮助关于Javascript日期小控件的小练习
  详细解决方案

老掉牙裴帮助关于Javascript日期小控件的小练习

热度:25   发布时间:2012-11-23 22:54:33.0
老裴帮助关于Javascript日期小控件的小练习

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
? <head>
??? <base href="<%=basePath%>">
??? <title>日期控件</title>??
?<meta http-equiv="pragma" content="no-cache">
?<meta http-equiv="cache-control" content="no-cache">
?<script type="text/javascript" src="<%=path%>/js/calender/Date.js"></script>
?<script type="text/javascript" src="<%=path%>/js/calender/Calender.js"></script>
?
</head>
<!--/js/calender/Date.js -->
? 开始日期:?<input id="startTime" name="startTime" type="text"? value='' size="15" readonly>
???<img src="<%=path%>/js/calender/dateico.png" width="20" height="23" onclick="setday(this,document.getElementById('startTime'))" onmouseover="this.style.cursor = 'pointer'"/>
<br>
<!-- js/calender/Calender.js -->
结束日期:<input name="endTime" type="text"? value='' size="15" readonly >
???<img src="<%=path%>/js/calender/dateico.png" width="20" height="23" onclick="popUpCalendar(endTime, endTime, 'yyyy-mm-dd')" onmouseover="this.style.cursor = 'pointer'"/>
? <body>
? </body>
</html>

  相关解决方案