郑州夜晚哪些地方好玩:50分急求网页前台脚本

来源:百度文库 编辑:杭州交通信息网 时间:2024/03/29 21:48:54
急求网页前台进行判断用户名,密码正确并转页的脚本代码!用户名,密码全在前台设置,纯束静态登陆界面的使用脚本!
并希望有办法在前台进行密码转译为乱码(次另外写)
谢谢!~
要求简单易懂!
满意后另外悬赏!

这个我当初找了N长时间啊

<html>
<head>
<script language="javascript">
function on_login()
{
var objusr;
var objpwd;
objusr = document.getElementById("usr");
objpwd = document.getElementById("pwd");
if ( objusr.value == "bsd" && objpwd.value == "bsd" )
{
window.location.href = "ok.htm";
}
else
{
window.alert("用户名或密码错了:)");
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<input type="text" id="usr" name="usr"/>
<input type="password" id="pwd" name="pwd"/>
<input type="button" value="点击" onclick="on_login()"/>
</body>
</html>

至于密码加密任需高手帮你 我也解决不了 还有登陆页面的权限问题!