📄 gongyu.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%
int counter=0;
Cookie cookies[]=request.getCookies();
if(cookies!=null){
for(int i=0;i<cookies.length;i++){
if(cookies[i].getName().equals("counter"))
counter=Integer.parseInt(cookies[i].getValue())+1;
}
}
Cookie c=new Cookie("counter",""+counter);
c.setMaxAge(60*60*12);
response.addCookie(c);
//session.setAttribute("counter1",new Integer(counter));
%>
<html>
<head>
<title>广师公寓中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/background.gif">
<!-- ImageReady Slices (gongyu2.psd) -->
<table id="__01" width="681" height="468" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="17">
<img src="images/gongyu_01.gif" width="13" height="468" alt=""></td>
<td>
<img src="images/gongyu_02.gif" width="369" height="57" alt=""></td>
<td>
<img src="images/gongyu_03.gif" width="135" height="57" alt=""></td>
<td>
<img src="images/gongyu_04.gif" width="149" height="57" alt=""></td>
<td rowspan="17">
<img src="images/gongyu_05.gif" width="14" height="468" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="57" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/gongyu_06.gif" width="369" height="43" alt=""></td>
<td>
<a href="ry.jsp"><img src="images/gongyu_07.gif" alt="" width="135" height="21" border="0"></a></td>
<td rowspan="15">
<jsp:include page="image.htm"/></td>
<td>
<img src="images/分隔符.gif" width="1" height="21" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<a href="xszs.jsp"><img src="images/gongyu_09.gif" alt="" width="135" height="24" border="0"></a></td>
<td>
<img src="images/分隔符.gif" width="1" height="22" alt=""></td>
</tr>
<tr>
<td rowspan="3">
<img src="images/gongyu_10.gif" width="369" height="45" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="2" alt=""></td>
</tr>
<tr>
<td>
<a href="wh.jsp"><img src="images/gongyu_11.gif" alt="" width="135" height="30" border="0"></a></td>
<td>
<img src="images/分隔符.gif" width="1" height="30" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<a href="lx.jsp"><img src="images/gongyu_12.gif" alt="" width="135" height="25" border="0"></a></td>
<td>
<img src="images/分隔符.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/gongyu_13.gif" width="369" height="32" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="12" alt=""></td>
</tr>
<tr>
<td>
<a href="hd.jsp"><img src="images/gongyu_14.gif" alt="" width="135" height="20" border="0"></a></td>
<td>
<img src="images/分隔符.gif" width="1" height="20" alt=""></td>
</tr>
<tr>
<td>
<img src="images/gongyu_15.gif" width="369" height="35" alt=""></td>
<td>
<img src="images/gongyu_16.gif" width="135" height="35" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="35" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_17.gif" width="504" height="29" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="29" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_18.gif" width="504" height="36" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="36" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_19.gif" width="504" height="29" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="29" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_20.gif" width="504" height="25" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="25" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_21.gif" width="504" height="31" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/gongyu_22.gif" width="504" height="22">
<span class="style1">
<jsp:include page="time.htm"/>
</span> <div align="right" class="style1">
<%
if(counter==0){
out.print("欢迎首次光临!");
}
else{
out.print("今天您已经光临了"+counter+"次!");
}
%></div></td>
<td>
<img src="images/分隔符.gif" width="1" height="22" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/gongyu_23.gif" width="504" height="20" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="20" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/gongyu_24.gif" width="653" height="64" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="64" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -