61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登陆</title>
</head>
<script language="javascript">
function check()
{
if((document.tt.user.value=="zhangsan") &&(documeng.tt.psd.value=="123"))
location.href="logok.html";
else
window.alert("错误");
}
</script>
<body>
<form id="tt" name="tt" method="post" >
<table border="0" align="center">
<tr>
<td>用户名:</td>
<td> <input name="user" type="text" id="user" />
</td>
</tr>
<tr>
<td>密码:</td>
<td> <input name="psd" type="password" id="psd" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="登陆" onclick="check();" /> </td>
</tr>
</table>
<table border="0" align="center">
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登陆</title>
</head>
<script language="javascript">
function check(){
if((document.forms['tt'].user.value=="zhangsan") &&(document.forms['tt'].psd.value=="123")){
location.href="logok.html";
return true;
}else{
window.alert("错误");
return false;
}
}
</script>
<body>
<form id="tt" name="tt" method="post" >
<table border="0" align="center">
<tr>
<td>用户名:</td>
<td> <input name="user" type="text" id="user" />
</td>
</tr>
<tr>
<td>密码:</td>
<td> <input name="psd" type="password" id="psd" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="登陆" onclick="return check();" /> </td>
</tr>
</table>
<table border="0" align="center">
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登陆</title>
</head>
<script language="javascript">
function check(){
if((document.forms['tt'].user.value=="zhangsan") &&(document.forms['tt'].psd.value=="123")){
location.href="logok.html";
return true;
}else{
window.alert("错误");
return false;
}
}
</script>
<body>
<form id="tt" name="tt" method="post" >
<table border="0" align="center">
<tr>
<td>用户名:</td>
<td> <input name="user" type="text" id="user" />
</td>
</tr>
<tr>
<td>密码:</td>
<td> <input name="psd" type="password" id="psd" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="登陆" onclick="return check();" /> </td>
</tr>
</table>
<table border="0" align="center">
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登陆</title>
</head>
<script language="javascript">
function check(){
if((document.forms['tt'].user.value=="zhangsan") &&(documeng.forms['tt'].psd.value=="123")){
location.href="logok.html";
return true;
}else{
window.alert("错误");
return false;
}
}
</script>
<body>
<form id="tt" name="tt" method="post" >
<table border="0" align="center">
<tr>
<td>用户名:</td>
<td> <input name="user" type="text" id="user" />
</td>
</tr>
<tr>
<td>密码:</td>
<td> <input name="psd" type="password" id="psd" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="登陆" onclick="return check();" /> </td>
</tr>
</table>
<table border="0" align="center">
</form>
</body>
</html>