zoukankan      html  css  js  c++  java
  • 修改的梅花雪的日期控件。。只是一些小改动

    根据梅花雪的日期控件修改而来做了一些小扩充,样式做了一些调整
    转载请注明原作者是梅花雪,假正经哥哥只是做了小修改,谢谢大家,
    调用实例图片的样式实例调用,api 参考原说明文档 
         
    <script src="nagejs.js" type="text/javascript"></script><script language='javascript'>
    WebCalendar.yearFall 
    = 10
    WebCalendar.format 
    = 'yyyy-mm-dd' ;
    WebCalendar.timeShow 
    = false ;
    WebCalendar.drag 
    = true ;
    WebCalendar.darkColor  
    = 'activecaption';
    WebCalendar.lightColor 
    = 'captiontext' ;
    WebCalendar.wordColor 
    = 'windowtext';
    WebCalendar.wordDark 
    = 'appworkspace';
    WebCalendar.dayBgColor 
    ='window';
    WebCalendar.SelectedImgUrl  
    = ''; //对应的图片地址,下同
    WebCalendar.ToDayImgUrl 
    = '';
    WebCalendar.SetectedToDayImgUrl 
    = '';
    WebCalendar.LeftUpImgUrl 
    = '';
    WebCalendar.LeftDownImgUrl 
    = '';
    WebCalendar.RightUpImgUrl 
    ='';
    WebCalendar.RightDownImgUrl 
    ='';
          
     <span id="WebCalendar1" style="border-style:solid;border-1px;border-color:#C0C0C0;vertical-align:middle;cursor:hand;display:inline-block;120px;">
    <input name="_WebCalendar1" id="_WebCalendar1" maxlength="10" type="text" style="cursor:hand;100px; border:none 0px black;" value=""  onclick="selectText(this,window.event.offsetX);"  onKeyUp="DateFormat(this,this.value,event);" onblur="checkInput(this);"/>
    <img src="cal" onclick="javascript:calendar(document.getElementById('_WebCalendar1'));" width="16px" height="15px" style="margin:1px;cursor:hand;" />
    </span>




    不大愿意打字,调用实例中的各个事件是干吗大家试试就知道了,不说了

    文中提到的控件源码和图片:下载
  • 相关阅读:
    Vue DatePicker和不可用
    API图片路径和超链接语义化转换
    jQuery常用插件大全
    前端面试必备技巧整理
    堆与堆排序/Heap&Heap sort
    第k大的数
    POJ 2083 Fractal 分形题目
    最大子数组问题/Maximum Subarray
    一个简单的随机数生成算法
    成绩排序
  • 原文地址:https://www.cnblogs.com/xuanye/p/605514.html
Copyright © 2011-2022 走看看