完美的日期选择下拉,谁知道怎么取它的值?
将下列代码存为HTM,
<HTML>
<HEAD>
<TITLE>Microsoft Project Web Access - 192.168.25.145</TITLE>
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<META http-equiv="Content-Type" content="text/html">
<META content="MSHTML 6.00.3790.88" name="GENERATOR">
<script language="javascript">
function ttp()
{var fmt;
clock.one.value=clock.periodfromdirect.date;
// clock.two.value=clock.periodtodirect.date;
}
</script>
</HEAD>
<BODY ms_positioning="GridLayout">
<form id="clock" method="post" runat="server">
<INPUT id="two" style="Z-INDEX: 101; LEFT: 184px; WIDTH: 115px; POSITION: absolute; TOP: 128px" type="text">
<INPUT id="one" style="Z-INDEX: 102; LEFT: 64px; WIDTH: 115px; POSITION: absolute; TOP: 128px; HEIGHT: 22px" type="text" size=13>
<input id="sub" style="Z-INDEX: 104; LEFT: 264px; POSITION: absolute; TOP: 160px" onclick="ttp()" type="button" value="XXXXXX" runat="server">
<table style="Z-INDEX: 105; LEFT: 16px; POSITION: absolute; TOP: 16px">
<TR>
<TD><FONT id="myo" style="BORDER-RIGHT: #3399ff 1px solid; BORDER-TOP: #3399ff 1px solid; FONT-SIZE: 13px; BORDER-LEFT: #3399ff 1px solid; COLOR: #0099ff; BORDER-BOTTOM: #3399ff 1px solid"></FONT></TD>
</TR>
</table>
<font style="FONT-SIZE: 11px">
<OBJECT id=periodfromdirect
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; Z-INDEX: 106; BORDER-LEFT-COLOR: black; LEFT: 64px; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: black; WIDTH: 104px; BORDER-TOP-COLOR: black; POSITION: absolute; TOP: 64px; HEIGHT: 20px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: black"
data=data:application/x-oleobject;base64,kwfHZiKY3UKHReXbuRFxDQADAADACgAAEQIAAA==
classid=CLSID:66C70793-9822-42dd-8745-E5DBB911710D >
</OBJECT>
<OBJECT ID="TextConv"
CLASSID="clsid:01CD0F2C-2192-45dd-AE55-3DF84E0698F4"
TYPE="application/x-oleobject"
STYLE="display: none">
</OBJECT>
<OBJECT id=periodtodirect
style="Z-INDEX: 102; LEFT: 176px; WIDTH: 104px; POSITION: absolute; TOP: 64px; HEIGHT: 20px"
data=data:application/x-oleobject;base64,kwfHZiKY3UKHReXbuRFxDQADAADACgAAEQIAAA==
classid=CLSID:66C70793-9822-42dd-8745-E5DBB911710D
>
</OBJECT></font>
<SCRIPT language="JScript">
clock.periodfromdirect.Init(2052);
clock.periodfromdirect.DisplayWeekNumbers = 0;
clock.periodtodirect.Init(2052);
clock.periodtodirect.DisplayWeekNumbers = 0;
clock.periodfromdirect.Enabled = true;
clock.periodtodirect.Enabled =true;
</SCRIPT>
</form>
</BODY>
</HTML>