|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
缺乏可以共同遵循的行业标准,ASP还处在发展初期,大家对它的理解不同,如产品和服务标准,收费标准等,不利于行业的健康发展。控件functionrlCtrl()
{
//DateCtrlcreatedbyyyc2000-6-18
//Copyright(C)2000.6yyc,AllRightsReserved
//thisisafreeclass,butyoumustbereservethiscomments
//E-mail:yycmail@263.net
varvarMe,s,d,i;
varlen=rlCtrl.arguments.length;
if(len>0)
{
varMe=rlCtrl.arguments[0];
this.name=varMe;
if(len>=4)
{
this.year=rlCtrl.arguments[1];
this.month=rlCtrl.arguments[2];
this.day=rlCtrl.arguments[3];
}
else
{
today=newDate();
this.year=today.getYear();
this.month=today.getMonth()+1;
this.day=today.getDate();
}
this.getdate=getCurDate;
document.writeln(<TABLEwidth=160pxborder=0cellPadding=0cellSpacing=0>);
document.writeln(<TR><td>);
d=newDate(this.year,this.month-1,this.day);
i=d.getDay();
s=getsweek(i);
s=this.year+"年"+this.month+"月"+this.day+"日--"+s
document.writeln(<INPUTid=txt+varMe+name=txt+varMe+ondblclick=opencls(+varMe+);style="FONT-SIZE:9pt;FONT-STYLE:normal;HEIGHT:20px;width:100%"value=+s+readonly></TD>);
document.writeln(<TDwidth=15px>);
document.writeln(<inputtype=buttononclick=opencls(+varMe+);style="cursor:hand;FONT-SIZE:8pt;FONT-STYLE:normal;"value="">);
document.writeln(</TD></TR>);
document.writeln("</table>");
document.writeln(<divid=div+varMe+name=div+varMe+style="POSITION:absolute;display:none;WIDTH:160px">);
document.writeln(<TABLEid=tbl+varMe+name=tbl+varMe+WIDTH=100%BGCOLOR=#c0c0c0onkeyup=doKey(+varMe+,window.event.keyCode)ALIGN=centerstyle="COLOR:blue;FONT-SIZE:9pt;"BORDER=1CELLSPACING=1CELLPADDING=1>);
document.writeln("<TR><TDcolspan=7>");
document.writeln(<INPUTid=year+varMe+name=year+varMe+value=+this.year+style="BACKGROUND-COLOR:transparent;BORDER-BOTTOM:green0pxsolid;BORDER-LEFT:green0pxsolid;BORDER-RIGHT:green0pxsolid;BORDER-TOP:green0pxsolid;COLOR:blue;CURSOR:hand;FONT-SIZE:10pt;HEIGHT:15px;MARGIN-TOP:0pt;WIDTH:35px");
document.writeln(onmousemove=javascript:if(this.readOnly){this.style.backgroundColor=0xffffff;this.style.borderWidth=1;});
document.writeln(onmou搜索引擎优化ut=javascript:if(this.readOnly){this.style.backgroundColor="transparent";this.style.borderWidth=0;});
document.writeln(onclick=javascript:this.style.cursor="default";this.readOnly=0;this.select();this.focus(););
document.writeln(onblur=javascript:this.style.backgroundColor="transparent";this.style.borderWidth=0;this.style.cursor="hand";this.readOnly=1;this.value=+varMe+.year;dispDate(+varMe+););//tbl+varMe+.focus();
document.writeln(onkeypress=javascript:if(window.event.keyCode==13||window.event.keyCode==27){if(window.event.keyCode==13)+varMe+.year=this.value;this.blur();}elseif(window.event.keyCode<48||window.event.keyCode>57)window.event.keyCode=0;);
document.writeln(readonlymaxlength=4>);
//=====================
document.writeln(年<spanstyle="cursor:hand"onclick=+varMe+.year=+varMe+.year+1;year+varMe+.innerText=+varMe+.year;dispDate(+varMe+);>▲</span><spanstyle="cursor:hand"onclick=+varMe+.year=+varMe+.year-1;year+varMe+.innerText=+varMe+.year;dispDate(+varMe+);></span>);
document.writeln();
document.writeln(<spanid=month+varMe+>+this.month+</span>月<spanstyle="cursor:hand"onclick=+varMe+.month=+varMe+.month+1;if(+varMe+.month>12)+varMe+.month=1;month+varMe+.innerText=+varMe+.month;dispDate(+varMe+);>▲</span><spanstyle="cursor:hand"onclick=+varMe+.month=+varMe+.month-1;if(+varMe+.month<1)+varMe+.month=12;month+varMe+.innerText=+varMe+.month;dispDate(+varMe+);></span>);
document.writeln("</td></tr>");
document.writeln(<TRstyle="COLOR:yellow;"bgcolor=DarkSlateBlue><TD>日</TD><TD>一</TD><TD>二</TD><TD>三</TD><TD>四</TD><TD>五</T</p>ASP是依赖组件的,能访问数据库的组件好多就有好多种,再有就是你微软的工具可是什么都要收钱的啊! |
|