<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=refresh content=180>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY style="OVERFLOW-X: hidden" leftMargin=0 topMargin=0>
<FORM name=formstatus action="" method=post target=_top runat=server><DIV align=center> <table class="ExtendList" cellspacing="0" cellpadding="0" rules="all" border="1" style="width:88%;border-collapse:collapse;">
<TR>
<TD align=middle width=620 bgColor=#dfe3df colSpan=5 style="height: 19px">
<P align=left><INPUT
style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; FONT-SIZE: 12px; BORDER-LEFT: 0px solid; COLOR: #000000; BORDER-BOTTOM: 0px solid; FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif; BACKGROUND-COLOR: #dfe3df; TEXT-DECORATION: none"
name=status> <FONT size=2> <A
onmouseover="this.style.cursor='hand';" onclick=document.location.reload()
onmouseout="this.style.cursor='hand';">手动刷新</A></FONT>
</P>
</TD>
<td align="middle" bgcolor="#dfe3df" colspan="1" width="620" style="height: 19px">
</td>
</TR>
<tr class="C_order_title">
<td align="center" style="width: 20%; color: #ffffff; height: 19px;">商品名称</td>
<td align="center" style="width: 7%;color: #ffffff; height: 19px;">
单价</td>
<td align="center" style="width: 10%;color: #ffffff; height: 19px;">
收购总量</td>
<td style="width: 8%;color: #ffffff; height: 19px;" align="center">
状态</td>
<td style="color: #ffffff; height: 19px;" colspan="3" align="center">
下单</td>
</tr>
<tr><td colspan="7" align="center" style="height: 30px">
</td></tr>
</table>
<SCRIPT>
var limit="2:31"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+"分"+cursec+"秒后自动刷新"
else
curtime=cursec+"秒后自动刷新"
//window.status=curtime
self.document.formstatus.status.value = curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</SCRIPT>
</DIV>
</FORM>
</BODY>
</HTML>我找的一个自动刷新的代码,我在<form >里加了runat=server ,就显示不出时间了,怎么解决啊?
<META http-equiv=refresh content=180>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY style="OVERFLOW-X: hidden" leftMargin=0 topMargin=0>
<FORM name=formstatus action="" method=post target=_top runat=server><DIV align=center> <table class="ExtendList" cellspacing="0" cellpadding="0" rules="all" border="1" style="width:88%;border-collapse:collapse;">
<TR>
<TD align=middle width=620 bgColor=#dfe3df colSpan=5 style="height: 19px">
<P align=left><INPUT
style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; FONT-SIZE: 12px; BORDER-LEFT: 0px solid; COLOR: #000000; BORDER-BOTTOM: 0px solid; FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif; BACKGROUND-COLOR: #dfe3df; TEXT-DECORATION: none"
name=status> <FONT size=2> <A
onmouseover="this.style.cursor='hand';" onclick=document.location.reload()
onmouseout="this.style.cursor='hand';">手动刷新</A></FONT>
</P>
</TD>
<td align="middle" bgcolor="#dfe3df" colspan="1" width="620" style="height: 19px">
</td>
</TR>
<tr class="C_order_title">
<td align="center" style="width: 20%; color: #ffffff; height: 19px;">商品名称</td>
<td align="center" style="width: 7%;color: #ffffff; height: 19px;">
单价</td>
<td align="center" style="width: 10%;color: #ffffff; height: 19px;">
收购总量</td>
<td style="width: 8%;color: #ffffff; height: 19px;" align="center">
状态</td>
<td style="color: #ffffff; height: 19px;" colspan="3" align="center">
下单</td>
</tr>
<tr><td colspan="7" align="center" style="height: 30px">
</td></tr>
</table>
<SCRIPT>
var limit="2:31"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+"分"+cursec+"秒后自动刷新"
else
curtime=cursec+"秒后自动刷新"
//window.status=curtime
self.document.formstatus.status.value = curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</SCRIPT>
</DIV>
</FORM>
</BODY>
</HTML>我找的一个自动刷新的代码,我在<form >里加了runat=server ,就显示不出时间了,怎么解决啊?
<FORM name=formstatus action="" method=post target=_top runat=server>
应该写为
<form id="fromstatus" runat="server"但据我猜测,你使用VS2003,是.NET 1.1
————————————————————————
只讲思路,不贴代码!