<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>用户登录</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
function pass()
{
var user1="test"
var user2="test"var pass1=document.myform.password.value
var user10=document.myform.user.value
if (pass1 == user2&&user10==user1)
{alert("成功登录...欢迎你")
document.write("<HTML>")
document.write("<body bgcolor='#fef4d9'>")
document.write("<center><p><font size='6'color='darkblue'>欢迎进入!!</p>")
document.write("<p><a href='index2.htm'>进入</a><br>")
document.write("</html>")}
else
{
alert("登录失败")}
}
function change()
{
document.bgColor=('#fef4d9')
}
</SCRIPT>
<font color="red">
<center>
<FORM name="myform">
<h3>用户登录</h3>
用户名:
<INPUT TYPE="text"name="user">
<br>
密码:
<input type="password"name="password">
<br>
<input type="button"Value="进入"onClick="pass()">
<input type="button"value="重置">
</form>
</body>
</html>
要想知道密码,
[email protected]