日期:2014-05-16  浏览次数:20262 次

有没有选择时间(只有时分)或者时间上下调整的控件,好像没见到在web上实现的
有没有选择时间(只有时分)或者时间上下调整的控件
在网上找了好久都没有找到

------解决方案--------------------
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>