搜索
首页 电脑/网络 程序设计 其他编程语言

asp中怎样使用日历控件

asp中如何使用日历控件,并且在以后的程序代码中如何获得被选中的日期值,有没有详细的资料或是说明,谢谢!!

全部回答

2006-04-13

0 0

我的共享资料里有个javascript写的下拉日历控件,附带有个例子,你可以看下

2006-04-13

240 0

    用javascript来实现 //日历 var date_start,date_end,g_object var today = new Date(); var separator="-"; var inover=false; //mode :时间变换的类型0-年 1-月 2-直接选择月 function change_date(temp,mode) { var t_month,t_year if (mode){ if(mode==1) t_month=parseInt(cele_date_ lue,10)+parseInt(temp,10); else t_month=parseInt(temp) if (t_monthcele_date_month。
    options(cele_date_month。length-1)。text){ cele_date_ lue=cele_date_month。
  options(0)。text; change_date(parseInt(cele_date_ lue,10)+1,0); } else {cele_date_ lue=t_month; set_cele_date(cele_date_ lue,cele_date_ lue); } } } else{ t_year=parseInt(temp,10); if (t_yearparseInt(cele_date_year。
    options(cele_date_year。length-1)。text,10)){ cele_date_ lue=cele_date_year。
  options(cele_date_year。length-1)。text; set_cele_date(cele_date_ lue,12); } else {cele_date_ lue=t_year; set_cele_date(cele_date_ lue,cele_date_ lue); } } } /*********2002-02-01 MODIFY BY WING **************/ window。
    cele_ cus(); /****************MODIFY END***********************/ } //初始化日历 function init(d_start,d_end) { var temp_str; var i=0 var j=0 date_start=new Date(1980,7,1) date_end=new Date(2004,8,1) document。
    writeln("-"); window。cele_ nerHTML=""; temp_str=""; temp_str+="-"; temp_str+="" temp_str+="" for (i=1900;i"+ String()+""; } temp_str+="-"; temp_str+="" temp_str+="" for (i=1;i"+ String()+""; } temp_str+="-"; temp_str+="" temp_str+=">\" onclick=\"change_date(1,1)\" onmouseover=\"getlayerfocus()\" style=\"color: #000099; background-color: #BFBFBF; cursor: hand\">"; temp_str+="" temp_str+="日";temp_str+="一"; temp_str+="二"; temp_str+="三" temp_str+="四";temp_str+="五"; temp_str+="六"; for (i=1 ;i"; for(j=1;j?" } temp_str+="" } temp_str+=""; window。
    cele_ nerHTML=temp_str; } function set_cele_date(year,month) { var i,j,p,k var nd=new Date(year,month-1,1); ncelBubble=true; cele_date_ lue=year; cele_date_ lue=month; k= tDay()-1 var temp; for (i=1;idate_end || nd<date_start) { eval("c"+p+"_"+j+"。
    bgColor=\"#FF9999\""); eval("c"+p+"_"+j+"。 rsor=\"text\""); } nd=new Date( lueOf() + 86400000) } } 。
  

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
其他编程语言
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
互联网
反病毒
软件
程序设计
其他编程语言
数据库
C/C++
VB
JAVA相关
C#/.NET
VC++
汇编语言
其他编程语言
其他编程语言
举报
举报原因(必选):
取消确定举报