日历控件

来源:互联网 发布:空知猩猩神乐门 编辑:程序博客网 时间:2024/05/21 16:56

1 建一个 div

<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>

 

2

var cal1xx = new CalendarPopup("testdiv1");
cal1xx.showNavigationDropdowns();

 

3 <html:text property="fromDate" style="width:120px" readonly="true"
         onfocus="cal1xx.select(this,'id1','yyyy-MM-dd'); return false;"
         onclick="cal1xx.select(this,'id1','yyyy-MM-dd'); return false;"/>

(日历选择div  将在 id1 左边显示) 

4 CalendarPopup.js