javaweb课程设计-家教中心系统

编程语言:jsp、javaweb、html

截图展示:

 

代码如下:

show.jsp

 

  1 <%@ page language="java" contentType="text/html; charset=UTF-8"
  2     pageEncoding="UTF-8"%>
  3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4 <html>
  5 <head>
  6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7 <title>家教</title>
  8 
  9 </head>
 10 <body background="tu/b4.jpg" style="background-size:100%; background-repeat:no-repeat;">
 11 <script>
 12 function move(s)
 13 {   
 14     var d=document.getElementById(s);
 15     d.style.backgroundColor="#EEA9B8";
 16 }
 17 function mOut(s)
 18 {   
 19     var d=document.getElementById(s);
 20     d.style.backgroundColor="";
 21 }
 22 function shouye()
 23 {
 24     var d=document.getElementById("nei");
 25     var obj;
 26     obj="<div  style='height:60%;width:50%;float:left;padding:0px;'>";
 27     obj+="<table  height='100%' width='100%' border='1px' cellspacing='0px'   cellpadding='0' style='font-size:20px;border-collapse:collapse;'>";
 28     obj+="<tr align='center'><td colspan='12'>我们是怎么做的";
 29     obj+="<tr ><td colspan='4' style=''>全方位个性测评&nbsp<td colspan='4'>现状分析<td colspan='4'>个性化增分方案制定";
 30         obj+="<tr align='center'><td rowspan='3' colspan='4'>多角度,多维度测评基础知识、学习心态、学习方法、学习习惯、在读学校教学水平。";
 31             obj+="<td rowspan='3' colspan='4'>将升学考试大纲要求与 考生全方位测评结果相对照,找出知识盲区,制定科学的辅导方案。";
 32                 obj+="<td rowspan='3' colspan='4'>学科老师组建增分团,以总分为目标,围绕各学科增分要点,进行靶向定位的强化训练,定制行之有效的增分计划。";
 33                     obj+="<tr><tr><tr ><td colspan='4'>增分空间分析<td colspan='4'>个性化辅导执行<td colspan='4'>效果跟踪";
 34                         obj+="<tr align='center'><td rowspan='3' colspan='4'>综合考生成绩,充分挖掘考生潜能,分析其在升学考试中的提升空间,预测增分趋势。";
 35                             obj+="<td rowspan='3' colspan='4'>专职教师一对一辅导,全天全科陪读,心理专家激发斗志,调节心态,像知识、技巧、心态要分。";
 36                                 obj+="<td rowspan='3' colspan='4'>学习管理师全程监督指导,确保方案执行深度和力度无偏差,定期回访,及时反馈,随时修订辅导方案,是考生处于最佳状态,冲刺高分。";
 37                                     obj+="</table>";
 38                                         obj+="</div>";
 39                                             obj+="<div style='height:60%;width:15%;float:left;padding:0px;'> ";
 40                                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<img src='tu/j2.jpg'>";
 41                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp孩子学习存在的问题";
 42                                                         obj+="</div>";
 43                                                             obj+="<div style='height:60%;width:35%;float:left;padding:0px;'> ";
 44                                                                 obj+="<br/><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp1、学习基础薄弱  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2、考试题目一做就错";
 45                                                                     obj+="<br><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp3、重点难点掌握不牢  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp4、孩子学习粗心大意";
 46                                                                         obj+="<br><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp5、孩子学习动力不足  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp6、学习考试情绪波动";
 47                                                                             obj+="</div>";
 48                                                                                  d.innerHTML=obj;    
 49 }
 50 function help()
 51 {
 52     var d=document.getElementById("nei");
 53     var obj;
 54     obj="<div  style='height:40%;width:30%;float:left;padding:0px;border:1px;border-style:solid;border-color:#9FB6CD'>";
 55         obj+="<p style='font-size:20px;font-fammily:宋体'>&nbsp&nbsp&nbsp常见问题</p>";
 56             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;' />";
 57                 obj+="&nbsp&nbsp&nbsp•&nbsp&nbsp";
 58                     obj+="<a id='a1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>家长初次使用流程说明【必看】</a>";
 59                         obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
 60                             obj+="&nbsp&nbsp&nbsp•&nbsp&nbsp";
 61                                 obj+="<a id='a2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>普通老师价格表</a>";
 62                                     obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;' />";
 63                                         obj+="&nbsp&nbsp&nbsp•&nbsp&nbsp";
 64                                             obj+="<a id='a3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>金牌老师价格表</a>";
 65                                                 obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;' />";
 66                                                     obj+="&nbsp&nbsp&nbsp•&nbsp&nbsp";
 67                                                         obj+="<a id='a4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>试听费说明</a>";
 68                                                             obj+="<br/>";
 69                                                                 obj+="</div>";
 70                                                                     obj+="<div  style='height:10%;width:65%;float:right;padding:3px;border:1px;border-style:solid;border-color:#9FB6CD'>";
 71                                                                         obj+="<center> ";
 72                                                                             obj+="<br/>";
 73                                                                                 obj+="&nbsp<a id='a5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='zi1()' href='#' style='font-size:20px;font-fammily:宋体;color:black;text-decoration:none'>家长帮助</a>";
 74                                                                                     obj+="&nbsp<a id='a6' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='zi2()' href='#' style='font-size:20px;font-fammily:宋体;color:black;text-decoration:none'>媒体报道</a>";
 75                                                                                         obj+="&nbsp<a id='a7' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='zi3()' href='#' style='font-size:20px;font-fammily:宋体;color:black;text-decoration:none'>关于我们</a>";
 76                                                                                             obj+="&nbsp<a id='a8' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='zi4()' href='#' style='font-size:20px;font-fammily:宋体;color:black;text-decoration:none'>林大资讯</a>";
 77                                                                                                 obj+="&nbsp<a id='a9' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='zi5()' href='#' style='font-size:20px;font-fammily:宋体;color:black;text-decoration:none'>教育咨询</a>";
 78                                                                                                     obj+="</center>";
 79                                                                                                         obj+="<br/>";
 80                                                                                                             obj+="</div>";
 81                                                                                                                 obj+="<div  id='zi' style='height:50%;width:65%;float:right;padding:3px;border:1px;border-style:solid;border-color:#9FB6CD'>";
 82                                                                                                                     obj+="<br/>";
 83                                                                                                                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>家长初次使用流程说明【必看】</a>";
 84                                                                                                                             obj+="<br/>";
 85                                                                                                                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>试听费说明</a>";
 86                                                                                                                                     obj+="    <br/>";
 87                                                                                                                                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href=' show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>老师等级说明</a>";
 88                                                                                                                                             obj+="<br/>";
 89                                                                                                                                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href=' show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>如何挑选合适的老师?</a>";
 90                                                                                                                                                     obj+="<br/>";
 91                                                                                                                                                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>如何请金牌老师?</a>";
 92                                                                                                                                                             obj+="<br/>";
 93                                                                                                                                                                 obj+="    <br/>";
 94                                                                                                                                                                     obj+="</div>";
 95                                                                                                                                                                         d.innerHTML=obj;
 96     
 97 }
 98 function teacher()
 99 {
100     var d=document.getElementById("nei");
101     var obj;
102     obj="<div  style='height:20%;width:50%;float:center;margin: 0 auto;padding:5px;border:1px;border-style:solid;border-color:#9FB6CD'>";
103         obj+="<center style='font-size:20px;font-fammily:楷体;color:#1C86EE'>金牌名师讲解</center>";
104             obj+="<br/>";
105                 obj+="<center>";
106                     obj+="&nbsp&nbsp<a id='k1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu1()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>语文</a>";
107                         obj+="&nbsp&nbsp<a id='k2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu2()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>数学</a>";
108                             obj+="&nbsp&nbsp<a id='k3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu3()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>英语</a>";
109                                 obj+="&nbsp&nbsp<a id='k4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu4()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>物理</a>";
110                                     obj+="&nbsp&nbsp<a id='k5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu5()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>化学</a>";
111                                         obj+="&nbsp&nbsp<a id='k6' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' οnclick='kemu6()' href='#' style='font-size:20px;font-fammily:楷体;color:black;text-decoration:none'>生物</a>";
112                                             obj+="&nbsp&nbsp</center>";
113                                                 obj+="</div>";
114                                                     obj+="<br/>";
115                                                         obj+="<br/>";
116                                                             obj+="<div  id='kemu' style=' font-size:20px;font-fammily:楷体;height:40%;width:50%;float:center;margin: 0 auto;padding:5px;border:1px;border-style:solid;border-color:#9FB6CD'>";
117                                                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
118                                                                     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>周老师</a>";
119                                                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp扎扎实实提成绩";
120                                                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
121                                                                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
122                                                                                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>孟老师</a>";
123                                                                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真做事 诚信做人";
124                                                                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
125                                                                                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
126                                                                                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>杨老师</a>";
127                                                                                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真是一种态度";
128                                                                                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
129                                                                                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
130                                                                                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>杨老师</a>";
131                                                                                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp学高为师,身正为范";
132                                                                                                                         obj+="</div>";
133                                                                                                                         d.innerHTML=obj;
134 
135 }
136 
137 </script>
138 <script>
139 function mova(s)
140 {
141     var d=document.getElementById(s);
142     d.style.color="#87CEFF";
143     
144 }
145 function moua(s)
146 {
147     var d=document.getElementById(s);
148     d.style.color="black";
149     
150 }
151 </script>
152 <script>
153 function zi1()
154 {  
155     var d=document.getElementById("zi");
156     var obj;
157     obj="<br/>";
158     obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>家长初次使用流程说明【必看】</a>";
159     obj+="<br/>";
160         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>试听费说明</a>";
161             obj+="<br/>";
162                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>老师等级说明</a>";
163                     obj+="<br/>";
164                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>如何挑选合适的老师?</a>";
165                             obj+="<br/>";
166                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>如何请金牌老师?</a>";
167                                     obj+="<br/>";
168                                         obj+="<br/>";
169                                         d.innerHTML=obj;    
170     }
171 function zi2()
172 {  
173     var d=document.getElementById("zi");
174     var obj;
175     obj="<br/>";
176     obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【36氪】曾经从高校切入家教 O2O, 优思教育这次想要用服务来做网校</a>";
177     obj+="<br/>";
178         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【铅笔道】合作15所大学 为万名家长提供优质家教 让大学生收入1千万</a>";
179             obj+="<br/>";
180                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【创业邦】昔日明星解说如今成在线教育创业先驱</a>";
181                     obj+="<br/>";
182                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【36氪】“优思家教”荣膺NEXT年度最佳家教O2O产品</a>";
183                             obj+="<br/>";
184                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【36氪】“优思家教”在“红海”的家教O2O市场杀出一条道路</a>";
185                                     obj+="<br/>";
186                                         obj+="<br/>";
187                                         d.innerHTML=obj;    
188     }
189 function zi3()
190 {  
191     var d=document.getElementById("zi");
192     var obj;
193     obj="<br/>";
194     obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 家教--高校合作</a>";
195     obj+="<br/>";
196         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 家教 -- 高校合伙人火热招募中!</a>";
197             obj+="<br/>";
198                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 百所名校 - 百所名校联名认证的大学生家教服务平台</a>";
199                     obj+="<br/>";
200                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 加入我们大家庭【招募进行时】</a>";
201                             obj+="<br/>";
202                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 联系我们大家庭【欢迎业务洽谈】</a>";
203                                     obj+="<br/>";
204                                         obj+="<br/>";
205                                         d.innerHTML=obj;    
206     }
207 function zi4()
208 {  
209     var d=document.getElementById("zi");
210     var obj;
211     obj="<br/>";
212     obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 985/211高校领导视察|提供优质教育 服务名校教员</a>";
213     obj+="<br/>";
214         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 【作文集训课】 秋季中、高考作文集训营开课啦!</a>";
215             obj+="<br/>";
216                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 【集结令】我在找一个人,是你吗?</a>";
217                     obj+="<br/>";
218                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【抢书活动】6万家长庆典,新年免费抢好书好课!</a>";
219                             obj+="<br/>";
220                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>【高校合作】与东北林业大学达成战略合作</a>";
221                                     obj+="<br/>";
222                                         obj+="<br/>";
223                                         d.innerHTML=obj;    
224     }
225 function zi5()
226 {  
227     var d=document.getElementById("zi");
228     var obj;
229     obj="<br/>";
230     obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 陕4部门鼓励政府接收企办幼儿园</a>";
231     obj+="<br/>";
232         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 高二到高三,一次孤单的旅行</a>";
233             obj+="<br/>";
234                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 切实抓好学习教育这个第一位的任务</a>";
235                     obj+="<br/>";
236                         obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 对高职物理有效教学策略的研究</a>";
237                             obj+="<br/>";
238                                 obj+="<br/>&nbsp&nbsp&nbsp•&nbsp&nbsp<a id='z5' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='show.jsp'  style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'> 陕西省教育将推出多项改革新举措</a>";
239                                     obj+="<br/>";
240                                         obj+="<br/>";
241                                         d.innerHTML=obj;    
242     }
243     
244 </script>
245 <script>
246 function kemu1()
247 {
248     var d=document.getElementById("kemu");
249     var obj;
250     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
251     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>周老师</a>";
252         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp扎扎实实提成绩";
253             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
254                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
255                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>孟老师</a>";
256                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真做事 诚信做人";
257                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
258                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
259                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>杨老师</a>";
260                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真是一种态度";
261                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
262                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
263                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>杨老师</a>";
264                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp学高为师,身正为范";
265                                                     d.innerHTML=obj;
266 }
267 function kemu2()
268 {
269     var d=document.getElementById("kemu");
270     var obj;
271     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
272     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>郭老师</a>";
273         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真细致,会抓重点";
274             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
275                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
276                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>陈老师</a>";
277                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真负责";
278                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
279                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
280                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>曹老师</a>";
281                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp没有笨学生,只有不懂教学的老师";
282                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
283                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
284                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>候老师</a>";
285                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp对得起自己的良心";
286                                                     d.innerHTML=obj;
287 }
288 function kemu3()
289 {
290     var d=document.getElementById("kemu");
291     var obj;
292     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
293     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>毕老师</a>";
294         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp认真做好每一件事";
295             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
296                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
297                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>李老师</a>";
298                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp相信知识的力量";
299                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
300                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
301                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>邵老师</a>";
302                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp有经验";
303                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
304                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
305                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>马老师</a>";
306                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp让学习变成一种享受收获的乐趣";
307                                                     d.innerHTML=obj;
308 }
309 function kemu4()
310 {
311     var d=document.getElementById("kemu");
312     var obj;
313     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
314     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>周老师</a>";
315         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp扎扎实实提成绩";
316             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
317                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
318                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>李老师</a>";
319                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp尽我所能,毫无保留,教我所学。";
320                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
321                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
322                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>李老师</a>";
323                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp尽己所能回报社会,传递爱与温暖!";
324                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
325                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
326                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>李老师</a>";
327                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp用心是我对您的保证。";
328                                                     d.innerHTML=obj;
329 }
330 function kemu5()
331 {
332     var d=document.getElementById("kemu");
333     var obj;
334     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
335     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>王老师</a>";
336         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp罗马不是一天建成的";
337             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
338                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
339                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>曾老师</a>";
340                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp兴趣是最好的老师,学习方法最重";
341                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
342                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
343                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>张老师</a>";
344                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp知识,方法,经验,我愿与你分享。";
345                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
346                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
347                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>赖老师</a>";
348                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp心中有爱。";
349                                                     d.innerHTML=obj;
350 }
351 function kemu6()
352 {
353     var d=document.getElementById("kemu");
354     var obj;
355     obj="&nbsp&nbsp&nbsp&nbsp&nbsp";
356     obj+="<a id='l1' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>刑老师</a>";
357         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp没有学不好,只有教不好。";
358             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
359                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
360                     obj+="<a id='l2' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>程老师</a>";
361                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp最大努力最好成绩";
362                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;''/>";
363                                 obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
364                                     obj+="<a id='l3' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>单老师</a>";
365                                         obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp通过我的知识帮弟弟妹妹们解决烦恼";
366                                             obj+="<hr style='height:1px;border:none;border-top:1px solid #9FB6CD;'/>";
367                                             obj+="&nbsp&nbsp&nbsp&nbsp&nbsp";
368                                                 obj+="<a id='l4' οnmοuseοver='mova(this.id)' οnmοuseοut='moua(this.id)' href='#' style='font-size:15px;font-fammily:楷体;color:black;text-decoration:none'>何老师</a>";
369                                                     obj+="&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsptry my best.";
370                                                     d.innerHTML=obj;
371 }
372 
373 
374 </script>
375 <div style="height:20%;width:100%;float:center;padding:0px;">
376 <p style="font-size:40px;font-family:楷体;">&nbsp&nbsp&nbsp&nbsp百所名校&nbsp&nbsp林大家教</p>
377 </div>
378 <div  style="border:0px;height:10%;width:100%;float:center;padding:5px;">
379 <center>
380 <table style="color:white;font-family:楷体 ;font-size:20px">
381  <tr height="60">
382    <th  id="t1"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"  ><a href="#" onclick="shouye()" style="color:#1C86EE;text-decoration:none">首页</a>&nbsp
383    <th id="t6"  onmouseover="move(this.id)" onmouseout="mOut(this.id)" ><a href="#"  onclick="teacher()"  style="color:#1C86EE;text-decoration:none">金牌名师</a>&nbsp
384    <th id="t2"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"><a href="#"  onclick="help()"  style="color:#1C86EE;text-decoration:none">帮助说明</a>&nbsp
385    <th id="t3"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"><a href="liuyan.jsp"  style="color:#1C86EE;text-decoration:none">留言板</a>&nbsp
386    <th id="t4"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"><a href="denglu1.html" style="color:#1C86EE;text-decoration:none">我要找家教</a>&nbsp
387    <th id="t5"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"><a href="denglu2.html" style="color:#1C86EE;text-decoration:none">我要做家教</a>&nbsp
388 </table>
389  </center>
390 </div>
391 <div id="nei" style="height:60%;width:100%;float:center;padding:2px;">
392 <div  style="height:60%;width:50%;float:left;padding:0px;">
393 <table  height="100%" width="100%" border="1px" cellspacing="0"   cellpadding="0" style="font-size:20px;border-collapse:collapse;">
394 <tr align="center"><td colspan="12">我们是怎么做的
395 <tr ><td colspan="4" >全方位个性测评&nbsp<td colspan="4">现状分析<td colspan="4">个性化增分方案制定
396 <tr align="center"><td rowspan="3" colspan="4">多角度,多维度测评基础知识、学习心态、学习方法、学习习惯、在读学校教学水平。
397 <td rowspan="3" colspan="4">将升学考试大纲要求与 考生全方位测评结果相对照,找出知识盲区,制定科学的辅导方案。
398 <td rowspan="3" colspan="4">学科老师组建增分团,以总分为目标,围绕各学科增分要点,进行靶向定位的强化训练,定制行之有效的增分计划。
399 <tr><tr><tr ><td colspan="4">增分空间分析<td colspan="4">个性化辅导执行<td colspan="4">效果跟踪
400 <tr align="center"><td rowspan="3" colspan="4">综合考生成绩,充分挖掘考生潜能,分析其在升学考试中的提升空间,预测增分趋势。
401 <td rowspan="3" colspan="4">专职教师一对一辅导,全天全科陪读,心理专家激发斗志,调节心态,像知识、技巧、心态要分。
402 <td rowspan="3" colspan="4">学习管理师全程监督指导,确保方案执行深度和力度无偏差,定期回访,及时反馈,随时修订辅导方案,是考生处于最佳状态,冲刺高分。
403 </table>
404 </div>
405 
406 <div style="height:60%;width:15%;float:left;padding:0px;"> 
407 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<img src="tu/j2.jpg">
408 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp孩子学习存在的问题
409 </div>
410 
411 <div style="height:60%;width:35%;float:left;padding:0px;"> 
412 <br/><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp1、学习基础薄弱  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2、考试题目一做就错
413 <br><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp3、重点难点掌握不牢  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp4、孩子学习粗心大意
414 <br><br/><br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp5、孩子学习动力不足  &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp6、学习考试情绪波动
415 </div>
416 
417 
418 </div>
419 <div style="height:10%;width:100%;float:left;padding:0px;">
420 <center style="color:#68228B">
421 <br/>
422 <a href="#" style="color:#68228B;text-decoration:none">关于我们</a>&nbsp|&nbsp<a href="#" style="color:#68228B;text-decoration:none">意见反馈及投诉</a>&nbsp|&nbsp<a href="#" style="color:#68228B;text-decoration:none">免责说明</a>
423 &nbsp|&nbsp<a href="#" style="color:#68228B;text-decoration:none">求高分过</a></br>
424 --
425 </center>
426 
427 </div>
428 </body>
429 </html>

 

liuyan.jsp

 1 <%@ page language="java" contentType="text/html; charset=UTF-8"
 2     pageEncoding="UTF-8"%>
 3     <%@ page import="java.util.*" %>
 4 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 5 <html>
 6 <head>
 7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 8 <title>Insert title here</title>
 9 <script>
10 function move(s)
11 {
12     var d=document.getElementById(s);
13     d.style.color="#76EE00";
14     
15 }
16 function mOut(s)
17 {
18     var d=document.getElementById(s);
19     d.style.color="#68228B";
20     
21 }
22 </script>
23 <script>
24 function pass()
25 {  
26       
27       var s=chat.say.value;
28        if(s=="")
29        { alert("发言不能为空");
30            return false;
31        }
32         return true; 
33 }
34 </script>
35 
36 </head>
37 <body background="tu/b4.jpg" style="background-size:100%; background-repeat:no-repeat;">
38 <%
39       String sus,fy,str;
40       request.setCharacterEncoding("UTF-8");
41       sus=(String)session.getAttribute("name");
42       if(sus==null)
43       {
44           response.setHeader("refresh","3;url=denglu1.html");
45       }
46       fy=request.getParameter("say");
47       if(fy!=null&&sus!=null)
48       { str=sus+" "+"说:"+fy+"<br/>";
49         if(application.getAttribute("quanbu")==null)
50         {
51         
52         application.setAttribute("quanbu",str);
53         }
54        else
55         {
56           str=(String)application.getAttribute("quanbu")+str;
57           application.setAttribute("quanbu",str);
58         }
59       }
60       
61 %>
62 <div  style="height:10%;width:100%;float:center;padding:5px;">
63 <br/>
64 <br/>
65 <br/>
66 <br/>
67 <center style="color:black;font-family:楷体 ;font-size:20px">
68   <a href="show.jsp" id="t1"  onmouseover="move(this.id)" onmouseout="mOut(this.id)" style="color:#68228B;text-decoration:none">首页</a>&nbsp&nbsp&nbsp&nbsp
69     <a href="liuyan.jsp" id="t2"  onmouseover="move(this.id)" onmouseout="mOut(this.id)" style="color:#68228B;text-decoration:none">留言板</a>&nbsp&nbsp&nbsp&nbsp
70    <a href="denglu1.html" id="t3"  onmouseover="move(this.id)" onmouseout="mOut(this.id)"  style="color:#68228B;text-decoration:none">登录</a>&nbsp&nbsp&nbsp&nbsp
71    <a href="login.html" id="t4"  onmouseover="move(this.id)" onmouseout="mOut(this.id)" style="color:#68228B;text-decoration:none">注册</a>&nbsp&nbsp&nbsp&nbsp
72  </center>
73  <br/>
74 <br/>
75 </div>
76 <div  style="height:20%;width:50%;float:center;margin: 0 auto;padding:5px;border:1px;border-style:solid;border-color:#9FB6CD">
77       <br/>
78           <h3 style="font-family:楷体">主人寄语:</h3>
79       <p style="font-family:华文彩云;font-size:15px;">&nbsp&nbsp&nbsp&nbsp留下你们宝贵的建议哦(⊙o⊙)!</p>
80       <br/>
81       <form name="chat" action="liuyan.jsp" method="post">
82       <textarea name="say" rows="5" cols="70"></textarea>
83       </br></br>
84       &nbsp&nbsp&nbsp&nbsp<input type="submit" value="发送" onclick="return pass()"> 
85       </form>
86       <br/>
87       <table border="1"  width="100%"  cellspacing="0px"   cellpadding="0" style="font-size:20px;border-collapse:collapse;">
88       <tr><td><% 
89       if(sus!=null&&fy!=null)
90       out.print(application.getAttribute("quanbu")); %>
91       <br/>
92       <br/>
93 </div>
94 
95 </body>
96 </html>

denglu1.html

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4 <meta charset="UTF-8">
 5 <title>Insert title here</title>
 6 </head>
 7 <body background="tu/b4.jpg">
 8 <center style="font-size:40px;font-family:楷体;">学生登录</center><br/>
 9 <form action="denglu.jsp" method="post">
10 <table align="center" >
11 <tr><td>用户名:</td><td><input type="text" name="name" ></td><td><br/></td></tr>
12 <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
13 <tr><td>密码:</td><td><input type="password" name="mima" ></td></tr>
14 <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
15 </table>
16 <br/>
17 <center><input type="submit"  value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"  value="重置"></center>
18 <br/>
19 </form>
20 <center><a href="login.html">立即注册</a></center>
21 </body>
22 <ml>

denglu2.html

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4 <meta charset="UTF-8">
 5 <title>Insert title here</title>
 6 </head>
 7 <body background="tu/b4.jpg">
 8 <center style="font-size:40px;font-family:楷体;">家教登录</center><br/>
 9 <center>
10 <form action="denglu.jsp" method="post">
11 
12 用户名:<input type="text" name="name" ><br/><br/>
13 密码:&nbsp&nbsp<input type="password" name="mima" ><br/><br/>
14 科目:&nbsp&nbsp<select ><option  >语文</option> 
15                        <option  >数学</option> 
16                        <option  >英语</option> 
17                        <option  >物理</option> 
18                        <option  >化学</option> 
19                        <option  >生物</option> 
20 </select>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
21 <br/><br/>
22 </center>
23 <center><input type="submit"  value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"  value="重置"></center>
24 <br/>
25 </form>
26 <center><a href="login.html">立即注册</a></center>
27 </body>
28 </html>

denglu.jsp

 1 <%@ page language="java" contentType="text/html; charset=UTF-8"
 2     pageEncoding="UTF-8" import="java.sql.*"%>
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 4 <html>
 5 <head>
 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 7 <title>Insert title here</title>
 8 </head>
 9 <body background="tu/b4.jpg">
10 <%
11 request.setCharacterEncoding("UTF-8");
12 String name=request.getParameter("name");
13 String mima=request.getParameter("mima");
14 String dri="com.mysql.jdbc.Driver";
15 String url="jdbc:mysql://localhost:3306/mysql";
16 String user="root";
17 String pass="1996";
18 Class.forName(dri);
19 Connection con=DriverManager.getConnection(url,user,pass);
20 Statement smt=con.createStatement();
21 String sql = "select * from dl";
22 ResultSet rs;
23 rs = smt.executeQuery(sql);    
24  int flag=0;
25 while(rs.next())
26 {
27     if(name.equals(rs.getString(1)) && mima.equals(rs.getString(2))){
28         flag=1;
29         session.setAttribute("name", name);
30         out.print("登录成功,5秒后返回首页<br/><center ><a href='show.jsp' style='font-size:20px'>返回首页</a></center>");
31         response.setHeader("refresh","5;url=show.jsp");
32         break;
33     }
34 }
35 if(flag==0)
36 {
37     out.print("用户名或密码错误,5秒后返回重新登录<br/><center ><a href='denglu1.html' style='font-size:20px'>返回登录</a></center>");
38     response.setHeader("refresh","5;url=denglu1.html");
39 }
40 %>
41 </body>
42 </html>

login.html

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4 <meta charset="UTF-8">
 5 <title>Insert title here</title>
 6 </head>
 7 <body background="tu/beijing.jpeg">
 8 <center style="font-size:40px;font-family:楷体;">用户注册</center><br/>
 9 <form action="zhuce.jsp" method="post">
10 <table align="center">
11 <tr><td>用户名:</td><td><input type="text" name="name" ></td><td><br/></td></tr>
12 <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
13 <tr><td>密码:</td><td><input type="text" name="mima" ></td></tr>
14 <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
15 <tr><td>请确认密码:</td><td><input type="text" name="mima1" ></td></tr>
16 <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
17 </table>
18 <br/>
19 <center><input type="submit"  value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"  value="重置"></center>
20 </form>
21 </body>
22 </html>

zhuce.jsp

 1 <%@ page language="java" contentType="text/html; charset=UTF-8"
 2     pageEncoding="UTF-8" import="java.sql.*"%>
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 4 <html>
 5 <head>
 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 7 <title>Insert title here</title>
 8 </head>
 9 <body background="tu/beijing.jpeg">
10 <%
11 request.setCharacterEncoding("UTF-8");
12 String name=request.getParameter("name");
13 String mima=request.getParameter("mima");
14 String dri="com.mysql.jdbc.Driver";
15 String url="jdbc:mysql://localhost:3306/mysql";
16 String user="root";
17 String pass="1996";
18 Class.forName(dri);
19 Connection con=DriverManager.getConnection(url,user,pass);
20 Statement smt=con.createStatement();
21 String sql="insert into dl(yhm,mm) values('"+name+"','"+mima+"')";
22 int a=smt.executeUpdate(sql);
23   if(a==1)
24   {
25       session.setAttribute("name", name);
26       out.print("注册成功,5秒后返回首页<br/><center ><a href='show.jsp' style='font-size:20px'>返回首页</a></center>");
27       response.setHeader("refresh","5;url=show.jsp");
28   }
29   else
30   {
31        out.print("注册失败,5秒后返回重新注册<br/><center ><a href='login.html' style='font-size:20px'>返回注册</a></center>");
32         response.setHeader("refresh","5;url=login.html");
33   }
34 %>
35 
36 
37 </body>
38 </html>

 

转载于:https://www.cnblogs.com/llsq/p/7406410.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值