代码如下:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<base href="<%=basePath%>">
</head>
<body><form name = "bbrules" action = "register/register2.jsp" method = "get" >
<TABLE cellSpacing="0" cellPadding="0" width="728" align="center" border="0">
<tr>
<td width="728" height="50"><font size="3" color="#2d5bbb"> 注册步骤:
<font color=red>1.阅读使用手册</font> -> 2.选择用户名 -> 3.填写个人资料 -> 4.注册成功</font></td>
</tr>
</TABLE>
<!--用户服务手册开始-->
<TABLE cellSpacing="0" cellPadding="0" width="476" align="center" border="0">
<TR>
<TD height="10"></TD></TR>
<TR>
<TD class="p3"><strong><font color="#FF0000">*请先仔细阅读并接受“英计0402通讯录使用手册”</font></strong><BR>
<strong><font color="#FF0000">*点击“我接受”继续<font></strong></TD></TR>
<TR>
<TD class="p4" align="center" width="560" height="18"></TD></TR>
<TR>
<TD class="p4" align="center" width="560" height="20"><font color="black"><b>英计0402通讯录使用手册</b></font></TD></TR>
<TR>
<TD class="p4" align="center" width="560" height="6"></TD></TR>
<TR>
<TD>
<TEXTAREA class="p2" name="textfield" rows="23" readOnly wrap="VIRTUAL" cols="80">英计0402通讯录使用手册
请认真阅读使用手册,再继续申请:
1:本通讯录只限于英计2班本班人员使用。
2:注册的用户名为你的名字,密码为你的学号。
3:如果不是本班人员,你注册后不能查看所有信息。
4:请大家自觉遵守使用规则,不要把自已的帐号给外班人使用。
5:本程序只是个人学习使用,不得用于商业用途。
</TEXTAREA>
<DIV align="center"></DIV></TD>
<TR>
<TD bgColor="#8eaef1" height="1"></TD></TR>
<TR>
<TD align="center" height="42">
<!-- <input type="button" name = "rulessubmit" value=" 我 接 受 "
onClick = "window.location.href='../register/register2.jsp'" style="height:23px">
<input type="button" name = "rulessubmit" value=" 我 接 受 "
onClick = countdown() style="height:23px"> -->
<input type = "submit" name = "rulessubmit" value = " 同 意 " style="height:23px">
<input type = "button" name = "return" value=" 不 同 意 " onClick="javascript:history.back();" style="height:23px">
</TD></TR></TABLE></form>
<script language="JavaScript">
var sec = 9;
var wait = sec*1000;
document.bbrules.rulessubmit.value = "同 意(" + sec + ")";
document.bbrules.rulessubmit.disabled = true;
for(int i = 1; i <= sec; i++) {
window.setTimeout("update(" + i ")", i*1000)
}
window.setTimeout("timer()", wait)
function update(num, value) {
if(num == wait/1000)
document.bbrules.rulessubmit.value = "同 意";
else {
printnr = (wait/1000)-num;
document.bbrules.rulessubmit.value = "同 意(" + printnr + ")";
}
}
function timer() {
document.bbrules.rulessubmit.disabled = false;
document.bbrules.rulessubmit.value = "同 意";
}
</script>
<!--用户服务手册结束-->
<TD width=0 bgColor="#5686e9"></TD></TR></TABLE>
</body>
</html>