纯JS写的只有时分的时间控件
来源:互联网 发布:服装销售软件排行 编辑:程序博客网 时间:2024/06/07 21:24
/** * 以下是时间框输入框架 */var str = "";document.writeln("<div id=\"_contents\" style=\"padding:6px; background-color:#E3E3E3; font-size: 15px; " + "border: 1px solid #777777; position:absolute; left:?px; top:?px; width:?px; height:?px; z-index:1000; display:none\">");str += "\u65f6<select id=\"_hour\">";for ( h = 0; h <= 9; h++) {str += "<option value=\"0" + h + "\">0" + h + "</option>";}for ( h = 10; h <= 23; h++) {str += "<option value=\"" + h + "\">" + h + "</option>";}str += "</select> \u5206<select id=\"_minute\">";for ( m = 0; m <= 9; m++) {str += "<option value=\"0" + m + "\">0" + m + "</option>";}for ( m = 10; m <= 59; m++) {str += "<option value=\"" + m + "\">" + m + "</option>";}str += "</select> <input value='确定' type=\"button\" onclick=\"_select()\" " + "value=\"\u786e\u5b9a\" style=\"height:25px;font-size:13px\" /></div>";str += '<div id="_contentsMsk" onclick="_hideTimer()" style="width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 999; display: none;"></div>';document.writeln(str);var _fieldname;function _hideTimer() {var $timer = $('#_contents');var $timerMsk = $('#_contentsMsk');$timer.hide();$timerMsk.hide();}function _SetTime(tt) {var $timerMsk = $('#_contentsMsk');$timerMsk.show();_fieldname = tt;var ttop = tt.offsetTop;//TT控件的定位点高var thei = tt.clientHeight;//TT控件本身的高var tleft = tt.offsetLeft;//TT控件的定位点宽while ( tt = tt.offsetParent) {ttop += tt.offsetTop;tleft += tt.offsetLeft;}document.getElementById("_contents").style.top = ttop + thei + 4 + 'px';document.getElementById("_contents").style.left = tleft + 'px';if (document.getElementById("_contents").style.display == "none") {document.getElementById("_contents").style.display = "block";} else {document.getElementById("_contents").style.display = "none";}}
0 0
- 纯JS写的只有时分的时间控件
- js写的日历控件(带有时分秒)
- 显示日历和时间的控件 js 时分秒
- 牛B的js 时间控件(年月日时分秒)
- 刚刚做的一个 JS简单时间控件【JS时分秒时间控件】
- 带有年月日时分秒的时间控件
- js去除时间的时分秒
- 纯js写的分页
- 纯js写的Ajax
- 一个 JS简单时间控件【JS时分秒时间控件】
- JS【JS时分秒时间控件】和js 折扣控件
- JS【JS时分秒时间控件】和js 折扣控件
- aspx页面运行纯js脚本的时间控件不能显示控件的解决办法
- 分享一个支持时分秒的Java时间控件
- jQuery UI的日期时间控件(年月日时分秒)
- jeecg框架中时间控件时分秒的显示
- 关于向Mysql数据库中插入时间只有日期没有时分秒的问题
- Flex纯as写的等待控件
- 个人测试博客
- Android高手进阶:Adapter深入理解与优化
- solr4配置
- POI入门--实例:将数据导入Excel表格
- db2look导出数据库结构
- 纯JS写的只有时分的时间控件
- sublime text3 配置
- 使用jquery无刷新上传图片,可用于头像预览功能
- OC基础教程7-属性、点语法
- 创新工场2016校园招聘 面试
- android小游戏“24点”放源码了!!
- jquery控制checkbox选中和取消
- windows下的php rabbit mq安装、配置
- SQLLITE3