zoukankan      html  css  js  c++  java
  • 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">
  • 相关阅读:
    20189222 《网络攻防技术》第一周作业
    apue.h 运行UNIX环境高编程序
    fflush()函数
    线性链表如何选择二级指针还是一级指针
    scanf()gets()fgets()区别
    淺談Coach思考模式
    Hello World
    C语言I博客作业04
    python模块:logging
    python模块:subprocess
  • 原文地址:https://www.cnblogs.com/luanwey/p/533702.html
Copyright © 2011-2022 走看看