javascript|控件 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="Microsoft FrontPage 5.0"> <M
<HTML> <HEAD> <TITLE>日期选择器</TITLE> <SCRIPT type="text/javascript"> /** * 返回日期 * @param d the delimiter * @param p the pattern of your date * @author Xinge(修改) */ String.prototype.toDate = function(x, p) { if(x ==
控件 displayCalendar(obj_month.innerText-1,obj_year.innerText); } function numberOfDays(month,year) //取得每月天数,判断平年闰年 { var numDays=new Array(31,28,31,30,31,30,31,31,30,31,30,31); n=numDays[month]; if(month==1&&year%4==0) ++n; re
控件 obj_year.innerText=parseInt(num_year)+1; //年数增加 displayCalendar(obj_month.innerText-1,obj_year.innerText); } function plusyear() { var obj_year=document.getElementById("year"); var obj_month=document.getElementById("m