修改文件: js/calendar.js
修改一下两个方法: (13,14,21,29行)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
点击(此处)折叠或打开
- function GetDate(idname,e){
- var sDate;
- var getElement = is_ie ? event.srcElement : e.target;
- if(getElement.tagName == "TD"){
- if(getElement.innerHTML != ""){
- inYear=getObj('Year').value;
- inMonth=getObj('Month').value;
- if(inMonth<10){inMonth="0"+inMonth;}
- inDay=getElement.innerHTML;
- if(inDay<10){inDay="0"+inDay;}
- sDate = inYear + "-" + inMonth + "-" + inDay;
- getObj(idname).value=sDate;
- getObj(idname).focus(); //获得焦点
- HiddenCalendar(idname);
-
-
- }
- }
-
}
-
-
function HiddenCalendar(idname){
- //关闭选择窗口
- getObj("Calendar").style.visibility='hidden';
- var objllist=document.getElementsByTagName('select');
- for(var i=0;i<objllist.length;i++)
- {
- objllist[i].style.visibility="";
- }
- getObj(idname).focus && getObj(idname).blur();//失去焦点
- }
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
阅读(215) | 评论(0) | 转发(0) |
相关热门文章
评论热议