window.setTimeout(ButtonSubmit.click, 60000);
解决方案 »
- 如何返回业务逻辑层中的提示信息
- 用asp.net绘制 值日表图片,怎么做
- 有谁知道---中国移动通信的“企信通”短信的接口API函数--急急急!!!!!!!!
- 传值老问题,请大家帮帮忙!!!!
- 在TABLE中动态生成DropDownlist,要对dropdownlist控件的selectedindexchanged事件响应问题
- 救命啊!!!求一条SQL语句高手请帮忙!!!
- 如何让dreamweaver建的c#模板不修改<@Page>指令
- DataGrid里面的CheckBox删除!
- 装了一个vb6的程序后,sql就坏了,现在重装怎么也装不上!mdac数据访问组件始终安装失败!各位有什么好的建议可以提供参考?非常感谢!
- 刚刚学,一个初级问题,打虾帮帮忙!!!!!
- 关于tree view control
- 求:VB.NET转换为C#的一段代码:(
<!-- //
var deadline= new Date("7/30/2000");
var symbol="7月30日";
var now = new Date();
var leave =deadline.getTime() - now.getTime();
var day = Math.floor(leave / (1000 * 60 * 60 * 24));
if (day > 0)
document.write("今天离"+ symbol+"还有"+day +"天")
else if (day == 0)
document.write("只有1天啦!")
else
document.write("唉呀!已经过了!");
// -->
</script>用javascript吧,把时间修改一下。
需要用在应用程序差不多的那种TIMER控件,直接拖到页面,然后写sub的那种
<script language='javascript'>
<!--
var time2=60;
var t=new Array();
for( i=0;i<20;i++){
t[i]=1;
}
function showtime(){
if (time2<0)
{time2=0;
location='complete.asp?t1='+t[0]+'&t2='+t[1]+'&t3='+t[2]+'&t4='+t[3]+'&t5='+t[4]+'&t6='+t[5]+'&t7='+t[6]+'&t8='+t[7]+'&t9='+t[8]+'&t10='+t[9]+'&t11='+t[10]+'&t12='+t[11]+'&t13='+t[12]+'&t14='+t[13]+'&t15='+t[14]+'&t16='+t[15]+'&t17='+t[16]+'&t18='+t[17]+'&t19='+t[18]+'&t20='+t[19];
}
else{
Time1.innerHTML="剩余时间:"+time2;
time2--;
setTimeout("showtime()",1000);}}
//-->
</script>
<div id=Time1></div>
<form method="POST" id=daan1>
<table width="100%" height="20" cellspacing="1" bordercolordark="#000000" border="0"> <tr>
<td width="100%" height="20" valign="top" colspan="2">
<font color="#222288">第1题.“同是天涯沦落人,相逢何必曾相识”出自?</font></td>
</tr>
<tr>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="1" checked name="t0" onclick="a0(1);">1.长恨歌</font>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="2" name="t0" onclick="a0(2);">2.赋得古原草送别</font>
</tr>
<tr>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="3" name="t0" onclick="a0(3);">3.琵琶行</font>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="4" name="t0" onclick="a0(4);">4.出塞</font>
</tr>
</table>
<table width="100%" height="20" cellspacing="1" bordercolordark="#000000" border="0"> <tr>
<td width="100%" height="20" valign="top" colspan="2">
<font color="#222288">第2题.哪部史学著作被称之为“史家之绝唱,无韵之《离骚》”?</font></td>
</tr>
<tr>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="1" checked name="t1" onclick="a1(1);">1.《资治通鉴》</font>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="2" name="t1" onclick="a1(2);">2.《史记》</font>
</tr>
<tr>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="3" name="t1" onclick="a1(3);">3.《天问》</font>
<td width="50%" height="10" valign="top">
<font color="#654321"><b><input type="radio" value="4" name="t1" onclick="a1(4);">4.《乐府诗集》</font>
</tr>
</table>
</form>
第二步:把<body>中的内容改为:
<body bgcolor="#fef4d9" onload="showtime();">