当前位置:学会吧培训频道电脑知识学习网页制作Javascript教程js日历控件(可精确到分钟)» 正文

js日历控件(可精确到分钟)

[08-08 00:48:04]   来源:http://www.xuehuiba.com  Javascript教程   阅读:8956
概要: border-collapse:collapse; } .c_dateHead td{ border:0px #ffffff solid; } .rightmenu{ float:left; /* 菜单总体水平位置 */ list-style:none; line-height:19px; /* 一级菜单高 */ background:#1371A0 ; /* 所有菜单移出色 */ font-weight: bold; padding:0px; margin:0px; border: 1px #000000 solid; } .rightmenu li{ float:left; /* 菜单总体水平位置 */ list-style:none; line-height:19px; /* 一级菜单高 */ background:#1371A0 ; /* 所有菜单移出色 */ font-weight: bold;
js日历控件(可精确到分钟),标签:javascript视频教程,javascript教程下载,http://www.xuehuiba.com
    border-collapse:collapse;
}
.c_dateHead td{ border:0px #ffffff solid; }
.rightmenu{
    float:left; /* 菜单总体水平位置 */
    list-style:none;
    line-height:19px; /* 一级菜单高 */
    background:#1371A0 ; /* 所有菜单移出色 */
    font-weight: bold;
    padding:0px;
    margin:0px;
border: 1px #000000 solid;
}
.rightmenu li{
    float:left; /* 菜单总体水平位置 */
    list-style:none;
    line-height:19px; /* 一级菜单高 */
    background:#1371A0 ; /* 所有菜单移出色 */
    font-weight: bold;
color:#FFFFFF;
padding:0px;
    margin:0px;
border: 1px #FFFFFF solid;
}
.rightmenu li a{
    float:left; /* 菜单总体水平位置 */
    list-style:none;
    line-height:19px; /* 一级菜单高 */
    background:#1371A0 ; /* 所有菜单移出色 */
    font-weight: bold;
color:#FFFFFF !important;
padding:0px;
    margin:0px;
    border-right: 0px;
display:block;
width:80px;
}
.rightmenu li a:hover{
    float:left; /* 菜单总体水平位置 */
    list-style:none;
    line-height:19px; /* 一级菜单高 */
    background:#B2CFDF ; /* 所有菜单移出色 */
    font-weight: bold;
color:#000000 !important;
padding:0px;
    margin:0px;
    border-right: 0px;
width:80px;
text-decoration:none;
}
</style>
<script>
function CalendarMinute(name,fName)
{
    this.name = name;
    this.fName = fName || "m_input";
    this.timer = null;
    this.fObj = null;
    
    this.toString = function()
    {
        var objDate = new Date();        
        var sMinute_Common = "class="m_input" maxlength="2" name=""+this.fName+"" onfocus=""+this.name+".setFocusObj(this)" onblur=""+this.name+".setTime(this)" onkeyup=""+this.name+".prevent(this)" onkeypress="if (!/[0-9]/.test(String.fromCharCode(event.keyCode)))event.keyCode=0" onpaste="return false" ondragenter="return false"";
        var sButton_Common = "class="m_arrow" onmouseup=""+this.name+".controlTime()" disabled"
        var str = "";
        str += "<table class="cal_drawtime" cellspacing="0" cellpadding="0">"
        str += "<tr>"
        str += "<td>"
        str += "请选择时间:"
        str += "</td>"
        str += "<td>"
        str += "<div class="m_frameborder">"
        str += "<input radix="24" value=""+this.formatTime(objDate.getHours())+"" "+sMinute_Common+">:"
        str += "<input radix="60" value=""+this.formatTime(objDate.getMinutes())+"" "+sMinute_Common+">"
        //str += "<input radix="60" value=""+this.formatTime(objDate.getSeconds())+"" "+sMinute_Common+">"
        str += "</div>"
        str += "</td>"
        str += "<td>"
        str += "<table class="cal_drawtime" border="0" cellspacing="0" cellpadding="0">"
        str += "<tr><td><button id=""+this.fName+"_up" "+sButton_Common+">5</button></td></tr>"        
        str += "<tr><td><button id=""+this.fName+"_down" "+sButton_Common+">6</button></td></tr>"

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页


Tag:Javascript教程javascript视频教程,javascript教程下载电脑知识学习 - 网页制作 - Javascript教程
《js日历控件(可精确到分钟)》相关文章
Copyright 学会吧 All Right Reserved.
在线学习社区!--学会吧
1 2 3 4 5 6 7 7 8 9 10 11 12 13