






















<select id="select1" name="select1">
<option value="2007" selected>2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>
<script language="javascript">
//对日期选择部分进行赋值
tick = new Date();
hours = tick.getHours();
month = tick.getMonth() + 1;
day = tick.getDate();
year = tick.getYear();
document.getElementById("select1").selectedIndex = year-2007;
document.getElementById("select2").selectedIndex = month-1;
document.getElementById("select3").selectedIndex = day-1;
document.getElementById("select4").selectedIndex = hours-1;
</script>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。