我都贴出来了, 不好意思。 我对网页一窍不通,今天第一次看javascript
<html>
<head>onSubmit
<script language="javascript">
function loadform(){
document.loginf.txtusername.focus();
}
</script>
</head>
<body background="images/final1.jpg" class="back" bgcolor="E7EOB6" onload="loadform();">
<Table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="center" width="50%" height="30%">
<img src="images/blank.gif">
</td>
<td align="right" width="50%" valign="bottom">
&nbsp;
</td>
</tr>
<tr>
<td align="center" colspan="2">
&nbsp;
</td>
</tr>
</Table>
<Table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="25%" valign="top">
<script language="javascript">
function newwindow(){
newwin = window.open("policies.asp","");
}
function newwindow2(){
newwin = window.open("schedule.asp","");
}
</script>
<style type="text/css">
a:link {
color: #060685;
text-decoration: none;
}
a:hover {
color: #B85A06;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #02182C;
}
body.back {
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>
</style>
<Table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><b>
<a href="signin.asp">
<font face="verdana" size="2">Sign In
</font>
</a>
</b></td>
</tr>
<tr>
<td><b>
<a href="signout.asp">
<font face="verdana" size="2">Sign Out
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="student_main.asp">
<font face="verdana" size="2">Students
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="javascript:newwindow()">
<font face="verdana" size="2">Policies/Procedures
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="javascript:newwindow2()">
<font face="verdana" size="2">Course Schedule
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="ad_signin.asp">
<font face="verdana" size="2">Admin Login
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="ac_signin.asp">
<font face="verdana" size="2">Accounts Login
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="contact.asp">
<font face="verdana" size="2">Contacts
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="dayoff.asp">
<font face="verdana" size="2">End of day sign out
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="index.asp">
<font face="verdana" size="2">Todays Messages
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="addmsg.asp">
<font face="verdana" size="2">Add Message
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="rep_problem.asp">
<font face="verdana" size="2">Computer Problems
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="daily_report.asp">
<font face="verdana" size="2">Lab Report
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="charter.asp">
<font face="verdana" size="2">Charter
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="leaveform.asp">
<font face="verdana" size="2">Leave Form
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="library.asp">
<font face="verdana" size="2">IAL Library
</font>
</b></td>
</tr>
<tr>
<td><b>
<a href="http://www.ulearn.ac.nz">
<font face="verdana" size="2">IAL Website
</font>
</b></td>
</tr>
</Table>
</td>
<td align="left" valign="top">
<Form name="loginf" action="" method="post">
<table border= "1" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td colspan="2"><font face="verdana" size="2">Please Sign In</font></td></tr>
<tr>
<td><font face="verdana" size="2">Username :</font></td>
<td><input type="text" name="txtusername" size="30"></td>
</tr>
<tr>
<td><font face="verdana" size="2">Password :</font></td>
<td><input type="password" name="txtpwd" size="30"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Sign In" name="cmdsubmit"></td>
<tr>
</table>
</Form>
</td>
</tr>
</Table>
<table width="100%">
<tr align="center">
<td>&nbsp;</td>
<tr>
<tr align="center">
<td>&nbsp;</td>
<tr>
<tr align="center">
<td>&nbsp;</td>
<tr>
<tr align="center">
<td><font face="verdana" size="1">Best viewed at 800 * 600 pixels</font></td>
<tr>
<tr align="center">
<td><font face="verdana" size="1">Created by joby cyriac - tt1</font></td>
<tr>
<tr align="center">
<td><font face="verdana" size="1"><a href="mailto:slava.e@ttrain.co.nz">Notify some Problems</a></font></td>
<tr>
</table>
</body>
</html>