|
|

楼主 |
发表于 2006-4-26 19:14:43
|
显示全部楼层
http://sun250.cugb.edu.cn/setip.htm
这个网址不知道你能不能访问,我在学校上网就得先访问这个页面输入用户名密码,其中确认的按钮用到了javascript。
源代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0048)http://windyweb.com/Templates/End_Storm/main.htm -->
<HTML><HEAD><TITLE>IP控制网关</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
<!--
body{ font-size: 9pt; line-height :13pt }
input { font-family: "宋体"; font-size: 9pt}
a:hover { color: #ffc125;TEXT-DECORATION: underline;background-color:ffffff; padding:1 }
td { font-size: 9pt; }
-->
</style>
</head>
<body bgcolor="#ffffff" text="#8b5a00" link="#da8c0b" Alink="#da8c0b" Vlink="#da8c0b" onLoad="setfocus()">
<br>
<center>
<form name="ipgwform" action="/ipgw/ipgw.ipgw" method="post">
用户名(Username):<input type="text" name="uid" SIZE=16 MAXLENGTH=15>
<br>
密 码(Password):<input type="password" name="password" SIZE=16 MAXLENGTH=15>
< >
<table >
<tr><td>
访问范围(Range):</td>
<td><input type="radio" name="range" value="2" checked>国内(Inside China) </td>
<td><input type="radio" name="range" value="1">国际(Outside China)</td>
</tr>
<td>超时检查(Timeout):</td>
<td><input type="radio" name="timeout" value="0" checked>20分钟(20 minutes) </td>
<td><input type="radio" name="timeout" value="1">2小时(2 hours)</td>
</table>
<p>
<table >
<tr align=center bgcolor="#ffdead" >
<td><font color="#ffffff">
<a href="javascript:connect()">
<font color="#9d271b">连接网络</font></a> |
<a href="javascript:disconnect()">
<font color="#9d271b">断开网络</font></a> |
<a href="javascript:disconnectall()">
<font color="#9d271b">断开全部连接</font></a>
</font></td>
</tr>
<tr align=center bgcolor="#ffffff" >
<td>
Connect
Disconnect
Disconnect All
</td>
</tr>
</table>
<input type="hidden" name="operation">
</form>
<a href="shuoming.htm">上网方式说明</a> <a href="faq.htm">常见问题解答</a> <a href="autodis.htm">欠费断网</a><font color="red">new</font>
<a href="ipbind.htm">IP地址绑定</a><font color="red">new</font> <!--a href="ca.htm">下载根证书</a--><br>
<hr width=85%><p>
<table width="85%" border="0" align="center" bgcolor="#FFFFFF" >
<tr>
<td width="8%">
<p><font color=#ff0000>注意:</font></p>
<p> </p><p> </p>
<p> </p>
</td>
<td width="92%">
<ol>
<li>为防止用户遭受经济损失,用户缺省的访问范围为国内,如果需要开通国际直接访问,请到网络中心办理相应手续。 </li>
<li> <font color="#FF0000"> 请务必在下机前,到IP控制网关来断开您的连接,
否则容易被他人利用产生意外流量或费用损失!</font> </li>
<li><font color="ff0000">为防止用户大量欠费,系统新增了“欠费断网”功能,即在每小时一次的结账过程中若发现账户已欠费,将自动中断当时的网络连接。</font>详见<a href="autodis.htm">“欠费断网说明”</a>。</li>
<li>系统在每月扣钱的条件是帐户上钱数>=0都能扣。</li>
<li>帐户超流量被封时,应及时来网络中心解封,否则,系统仍然可以扣月租费。</li>
</ol>
</td>
</tr>
</table>
</center>
</body>
<script language="JavaScript">
function setfocus() {
document.ipgwform.uid.focus();
}
function connect()
{
thisform = document.ipgwform;
if ( thisform.uid.value == "" ) {
alert ("用户名不能为空,请重新输入。 ");
thisform.uid.focus();
return;
}
if ( thisform.password.value == "" ) {
alert ("密码不能为空,请重新输入。");
thisform.password.focus();
return;
}
thisform.operation.value="connect";
thisform.submit();
}
function disconnect()
{
thisform = document.ipgwform;
thisform.range.value="4";
thisform.operation.value="disconnect";
thisform.submit();
}
function disconnectall()
{
thisform = document.ipgwform;
if ( thisform.uid.value == "" ) {
alert ("用户名不能为空,请重新输入。");
thisform.uid.focus();
return;
}
if ( thisform.password.value == "" ) {
alert ("密码不能为空,请重新输入。");
thisform.password.focus();
return;
}
thisform.range.value="3";
thisform.operation.value="disconnectall";
thisform.submit();
}
</script></HTML> |
|