:asp.net 关于js脚本的问题,运行之后没有倒数秒数,哪里出错了?!

黑小白 2012-03-14 05:55:55
<%@ Page Language="C#" MasterPageFile="~/MasterFile/login.master" AutoEventWireup="true" CodeFile="login_xszc.aspx.cs" Inherits="WelcomePage_login_xszc" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.style1
{
height: 190px;
width: 984px;
}
.style50
{
}
.style51
{
height: 51px;
}
.style52
{
height: 36px;
}
.style53
{
width: 355px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="style1" style= " border: thin groove #808080; background: 0 0;
width:984px; height:275px; " align="center" border="1">



<tr>
<td class="style51" align="center"
style="background-color: #008080; font-size: x-large;" colspan="2">
新用户注册</td>
</tr>
<tr>
<td class="style53" align="center">
 </td>
<td class="style50">
 </td>
</tr>
<tr>
<td class="style53" align="center">
学生名</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_name" runat="server" Width="166px"></asp:TextBox>
   <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">检验用户名</asp:LinkButton></td>
</tr>
<tr>
<td class="style53" align="center">
密码</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_mima" runat="server" Width="250px"></asp:TextBox>
<FONT color="#ff0000">*</td>
</tr>
<tr>
<td class="style53" align="center">
确认密码</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_checkmima" runat="server" Width="250px"></asp:TextBox>
<FONT color="#ff0000">*</td>
</tr>
<tr>
<td class="style53" align="center">
密码问题</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_question" runat="server" Width="250px"></asp:TextBox>
<FONT color="#ff0000"> *</td>
</tr>
<tr>
<td class="style53" align="center">
问题答案</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_answer" runat="server" Width="250px"></asp:TextBox>
<FONT color="#ff0000">*</td>
</tr>
<tr>
<td class="style53" align="center">
性别</td>
<td class="style50" align="center">
<asp:RadioButton id="u_msn" runat="server" Text="男孩" GroupName="group" Checked="True"></asp:RadioButton>
            
<asp:RadioButton id="u_msn1" runat="server" Text="女孩" GroupName="group"></asp:RadioButton>
 </td>
</tr>
<tr>
<td class="style53" align="center">
所在省份</td>
<td class="style50" align="center">
<asp:DropDownList ID="DropDownList2" runat="server" style="margin-left: 0px"
Width="250px">
</asp:DropDownList>
    </td>
</tr>
<tr>
<td class="style53" align="center">
所读学校</td>
<td class="style50" align="center">
<asp:DropDownList ID="DropDownList3" runat="server" Height="16px" Width="250px">
</asp:DropDownList>
    </td>
</tr>
<tr>
<td class="style53" align="center">
所读专业</td>
<td class="style50" align="center">
<asp:DropDownList ID="DropDownList4" runat="server" Height="19px" Width="250px">
</asp:DropDownList>
    </td>
</tr>
<tr>
<td class="style53" align="center">
您的地址</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_address" runat="server" Width="250px"></asp:TextBox>
  </td>
</tr>
<tr>
<td class="style53" align="center">
您的Email</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_email" runat="server" Width="150px"></asp:TextBox>
<FONT color="#ff0000">*
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox_email" ErrorMessage="Email不能为空"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox_email" ErrorMessage="请输入正确的邮箱地址!"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                       
</td>
</tr>
<tr>
<td class="style53" align="center">
您的 Q Q</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_qq" runat="server" Width="150px"></asp:TextBox>
<FONT color="#ff0000">* 
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox_qq" ErrorMessage="QQ不能为空"></asp:RequiredFieldValidator>
  
</td>
</tr>
<tr>
<td class="style53" align="center">
您的职业</td>
<td class="style50" align="center">
 <asp:DropDownList ID="DropDownList1" runat="server" Height="17px"
Width="250px">
</asp:DropDownList>
     </td>
</tr>
<tr>
<td class="style53" align="center">
您的微博</td>
<td class="style50" align="center">
<asp:TextBox ID="TextBox_weibo" runat="server" Width="250px">http://</asp:TextBox>
   
</td>
</tr>
<tr>
<td class="style53" align="center">
座右铭</td>
<td class="style50" align="center">
<asp:TextBox ID="u_Signature" runat="server" CssClass="TextBox" Height="80px"
TextMode="MultiLine" Width="250px"></asp:TextBox>
   
</td>
</tr>
<tr>
<td class="style53" align="center">
 </td>
<td class="style50" align="center">
<asp:Button ID="Button_register" runat="server" Text="注册" Width="70px"
onclick="Button_register_Click" style="height: 26px" />
              
<asp:Button ID="Button_back_login" runat="server" Text="重填"
onclick="Button_back_login_Click" Width="70px" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
 </td>
</tr>
<tr>
<td colspan="2" align="center" style="background-color: #C0C0C0">
<div align="center">
<p>


</p>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="center" class="style52" style="background-color: #008080">




</td>
</tr>

</table>
<form action="login_xszc.aspx" method="post" name="agree">
<center>
<input type="submit" value="请认真查看<服务条款和声明> (15 秒后继续)" name="agreeb">    
<input onclick="history.back(-1)" type="reset" value=" 我 不 同 意 ">
</center>
</form>
<script type="text/javascript" language="javascript">

var secs = 15;
document.agree.agreeb.disabled = true;
for (i = 1; i <= secs; i++) {
window.setTimeout("update(" + i + ")", i * 1000);
}
function update(num) {
if (num == secs) {
document.agree.agreeb.value = " 我 同 意 ";
document.agree.agreeb.disabled = false;
}
else {
printnr = secs - num;
document.agree.agreeb.value = "请认真查看<服务条款和声明> (" + printnr + " 秒后继续)";
}
}
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>





运行之后没有倒数秒数,哪里出错了?!

这个js是不是哪里没有设置好啊

求高手解答
...全文
88 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tan598121925 2012-03-14
  • 打赏
  • 举报
回复

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧