textbox获得焦点显示JS日历控件

 

网上下的JS日历控件


 

 

日历控件

 


 

保存为:PopupCalendar.js

调用的页面上写下以下脚本:

 

<script>

var oCalendarEn=new PopupCalendar("oCalendarEn");    //初始化控件时,请给出实例名称如:oCalendarEn
oCalendarEn.Init();


var oCalendarChs=new PopupCalendar("oCalendarChs");    //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("","","","","","","");
oCalendarChs.monthSting
=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs.oBtnTodayTitle
="今天";
oCalendarChs.oBtnCancelTitle
="取消";
oCalendarChs.Init();
        
</script>


 

页面上:

<INPUT id="aa" onfocus="getDateString(this,oCalendarChs)" readOnly type="text" value="中文界面版" name="dd" runat="server">
posted @ 2006-10-19 15:21  芽芽陆  阅读(2288)  评论(1编辑  收藏  举报