日期:2014-05-16 浏览次数:20377 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script language=javascript src="date.js"></script>
<script type="text/javascript">
var oCalendarChs=new PopupCalendar("oCalendarChs"); //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("日","一","二","三","四","五","六");
oCalendarChs.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs.oBtnTodayTitle="今天";
oCalendarChs.oBtnCancelTitle="取消";
oCalendarChs.mutilSelect = false;
oCalendarChs.Init();
var oCalendarChs1=new PopupCalendar("oCalendarChs1"); //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs1.weekDaySting=new Array("日","一","二","三","四","五","六");
oCalendarChs1.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs1.oBtnTodayTitle="今天";
oCalendarChs1.oBtnCancelTitle="取消";
oCalendarChs1.mutilSelect = true;
oCalendarChs1.Init();
</script>
<style>
.mouseover{border: 1px solid #5589AA; background-color:#BCD0DE;}
.mouseout{border: 1px solid #FFFFFF; background-color:#FFFFFF}
.onSelected{border: 1px solid red; background-color:red}
</style>
</head>
<br/>
<br/>
<table>
<tr>
<td width="200px">
<input readonly type="text" name="birthday" onclick='getDateString(this,oCalendarChs)' value="2013-02-12" size="18">
</td>
<td width="200px">
<input readonly type="text" name="bir" onclick='getDateString(this,oCalendarChs1)' value="2013-02-12" size="18">
</td>
</tr>
</table>
</html>