【asp源码栏目提醒】:网学会员鉴于大家对asp源码十分关注,论文会员在此为大家搜集整理了“asp输入日期的js代码_无法获取系统时间_无法根据年月调整星期_求教 - 其它资料”一文,供大家参考学习
asp 做的网页,输入日期时用 js 弹出界面选择但是出来的效果如下问题 1:无法获取系统日期年,年的位置是空白的;但是月是正确的,可以随系统时间变化问题 2:日期和星期固定不变,无法根据年月选择而正确变化问题 3:2 月无法自动调整为 28 天或 29 天,可以选出 2-31问题 4:上述界面弹出时位于页面最顶端左侧,而不是出现在选择框附近,怎么弄呢?请教众高手!!万分感谢页面调用代码日历.js 代码如下//日历var date_startdate_endg_objectvar today new Datevar separator-var inoverfalse//mode :时间变换的类型 0-年 1-月 2-直接选择月function change_datetempmodevar t_montht_year if mode ifmode1 t_monthparseIntcele_date_month.value10parseInttemp10 else t_monthparseInttemp if t_monthcele_date_month.optionscele_date_month.length-1.text cele_date_month.valuecele_date_month.options0.text change_dateparseIntcele_date_year.value1010 else cele_date_month.valuet_month set_cele_datecele_date_year.valuecele_date_month.value else t_yearparseInttemp10 if t_yearparseIntcele_date_year.optionscele_date_year.length-1.text10 cele_date_year.valuecele_date_year.optionscele_date_year.length-1.text set_cele_datecele_date_year.value12 else cele_date_year.valuet_year set_cele_datecele_date_year.valuecele_date_month.value /2002-02-01 MODIFY BY WING / window.cele_date.focus /MODIFY END///初始化日历function initd_startd_end var temp_str var i0 var j0 date_startnew Date198071 date_endnew Date210081 document.writeln- window.cele_date.innerHTML temp_str temp_str- temp_str temp_str for i1900i onclickchange_date11 onmouseovergetlayerfocus stylecolor:000099 background-color: BFBFBF cursor: hand temp_str temp_str日temp_str一 temp_str二 temp_str三 temp_str四temp_str五 temp_str六 for i1 i