Jsp写的简单的网页通讯录管理.docx
《Jsp写的简单的网页通讯录管理.docx》由会员分享,可在线阅读,更多相关《Jsp写的简单的网页通讯录管理.docx(53页珍藏版)》请在冰豆网上搜索。
![Jsp写的简单的网页通讯录管理.docx](https://file1.bdocx.com/fileroot1/2023-2/25/af7f53ab-60c7-4fef-94ca-f2b3e5251a1a/af7f53ab-60c7-4fef-94ca-f2b3e5251a1a1.gif)
Jsp写的简单的网页通讯录管理
Login.jsp
<%@pagelanguage="java"contentType="text/html;charset=gb2312"
pageEncoding="gb2312"%>
DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http:
//www.w3.org/TR/html4/loose.dtd">
//www.w3.org/1999/xhtml">
登陆
body{background:
#29497b;}
.logo-box{
position:
absolute;
top:
36px;
left:
85px;
background:
#29497brighttopno-repeat;
width:
320px;
}
.logo-boxh1{font-size:
40px;height:
50px;line-height:
50px;color:
#FFF}
.header{height:
150px;width:
980px;margin:
auto;position:
relative;color:
#fff;}
.wrapper{background:
#233e69;width:
100%;height:
400px;}
.content{width:
980px;margin:
auto;position:
relative;height:
100%;}
.msg-box{width:
480px;height:
100%;text-align:
center;}
.msg-boximg{vertical-align:
middle;}
.login-box{
position:
absolute;
top:
26px;
right:
-26px;
width:
448px;
height:
219px;
padding:
4px7px10px8px;
background:
#FFF;
}
.loginbtn{
border:
0none;
color:
#204497;
cursor:
pointer;
height:
27px;
width:
68px;
}
varxmlHttp=null;
functionshowHint(id)
{
switch(id){
case"username":
if(document.getElementById(id).value=="")
{
document.getElementById("user").innerHTML="用户名不能为空";
return;
}else{
document.getElementById("user").innerHTML="";
return;
}
case"password":
if(document.getElementById(id).value=="")
{
document.getElementById("pass").innerHTML="密码不能为空";
return;
}else{
//repwd=document.getElementById(id).value;
document.getElementById("pass").innerHTML="";
return;
}
}
try
{//Firefox,Opera8.0+,Safari,IE7
xmlHttp=newXMLHttpRequest();
}
catch(e)
{//OldIE
try
{
xmlHttp=newActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
alert("YourbrowserdoesnotsupportXMLHTTP!
");
return;
}
}
}
通讯录管理中心