top.jsp

来自「java游戏,很好的 下下来看看另类风格 风光好分工会法」· JSP 代码 · 共 36 行

JSP
36
字号
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="ppptech" class="ppptech.ppptech" scope="page" />
<%
String title="";
String temcontent="";
String content="";
String id=request.getParameter("id");
String url="http://www.yooxi.com/top/"+id;
temcontent=ppptech.connect(url);

content=ppptech.getcontent(temcontent,"<td width=\"40\" rowspan=\"3\">","<table width=\"760\" height=\"44\" border=\"0\" align=\"center\">");
try{
		content=content.replaceAll("index.htm","index.jsp");
		content=content.replaceAll("/commend/","commend.jsp?id=");
		content=content.replaceAll("/game/","play.jsp?id=");
		content=content.replaceAll("/bigclass/","class.jsp?id=");
		content=content.replaceAll("/images/","images/");
		content=content.replaceAll("/smallclass/","small.jsp?id=");
		content=content.replaceAll("/smallclasscommend.jsp?id=","small.jsp?id=commend/");
		content=content.replaceAll("/index.jsp","index.jsp");
		content=content.replaceAll("/top/","top.jsp?id=");
		content=content.replaceAll("/update/","update.jsp?id=");
		
		title=ppptech.getcontent(temcontent,"<title>","</title>");
		title=title.replaceAll("<title>","");
		title=title.replaceAll("Yooxi.com小游戏门户","小游戏频道—MP3试听网");
}catch(Exception e){
	content="<br><br><div align=center><a href=http://www.ppptech.cn/GuestBook/ target=_blank>读取数据出错,请点此给站长留言!</a></div><br><br>";
	title="系统出错";
}
%>
<%@ include file="head.jsp" %>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
<%=content%>
<jsp:include page="foot.html" flush="false" />

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?