zoukankan      html  css  js  c++  java
  • 超酷的OpenSource的Javascript Calendar控件

    该控件非常漂亮,而且支持用css的方式换肤,支持自定义calendar选择出来的日期格式,支持时间Time选择......
    重要的是,IE和Firefox都支持

    使用该控件的HTML可以这样写:

        <html>
        
    <head>
        
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
    <style type="text/css">@import url(calendar-system.css);</style>
        <script type="text/javascript" src="calendar.js"></script>
        <script type="text/javascript" src="calendar-en.js"></script>
        <script type="text/javascript" src="calendar-setup.js"></script>
        </head>
        <body>
        
    <form>
            
    <input type="text" id="data" name="data" READONLY />
            <button id="trigger">...</button>
        </form>
        <script type="text/javascript">
        Calendar.setup({
            inputField : 
    "data"// ID of the input field
            ifFormat : "%Y%m%d%H%M"// the date format
            showsTime: true,
            button : 
    "trigger"// ID of the button
            step: 1
        });
        
    </script>
        </body>
        </html>
    需要注意的是,那一段javascript的代码要写在form表单,button定义的后面,否则会说找不到data, trigger这些id对应的界面控件的。

    这个项目的主页位于:http://www.dynarch.com/projects/calendar
  • 相关阅读:
    推荐一款超棒的阅读App
    IntelliJ中的main函数和System.out.println()快捷键
    oracle中varchar2字段存入blob字段及blob转成varchar2
    闭包
    some of the properties associated with the solution could not be read解决方法
    Visual Studio 2010如何利用宏
    中高级程序员成长必备素质
    WORD小技巧
    de4dot 用法
    JavaScript学习记录
  • 原文地址:https://www.cnblogs.com/super119/p/1989369.html
Copyright © 2011-2022 走看看