L@_@K <body>
<table>
<tr>
<td><input type="text" id="txtHour" style="width: 20px" /><br />
<div id="divHour" style="position: absolute; display: none;">
<select id="oselect" size="6" style="width: 45px;"> </select> </td>
<td> : </td>
<td><input type="text" id="txtMinute" style="width: 20px" /></td>
</tr>
</table>
请输入出发时刻!(没做分的,感觉还是手工输入比较省事)
<script type="text/javascript">
<!--
for (var i=1; i<=24; i++)
{
document.all.oselect.options.add(new Option(i, i))
}
document.all.txtHour.onclick = function()
{
document.all.divHour.style.display = "block";
};
document.all.oselect.onclick = function()
{
document.all.txtHour.value = this.value;
document.all.divHour.style.display = "none";
};
//-->
</script>
</body>
<table>
<tr>
<td><input type="text" id="txtHour" style="width: 20px" /><br />
<div id="divHour" style="position: absolute; display: none;">
<select id="oselect" size="6" style="width: 45px;"> </select> </td>
<td> : </td>
<td><input type="text" id="txtMinute" style="width: 20px" /></td>
</tr>
</table>
请输入出发时刻!(没做分的,感觉还是手工输入比较省事)
<script type="text/javascript">
<!--
for (var i=1; i<=24; i++)
{
document.all.oselect.options.add(new Option(i, i))
}
document.all.txtHour.onclick = function()
{
document.all.divHour.style.display = "block";
};
document.all.oselect.onclick = function()
{
document.all.txtHour.value = this.value;
document.all.divHour.style.display = "none";
};
//-->
</script>
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货