⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 outlook.jsp

📁 一个用jsp写的完整的论坛源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="com.bcxy.bbs.forum.*,java.util.Vector"%>
<link href="js/outlook.css" rel="stylesheet" type="text/css">
<script src="js/outlook.js"></script>
<script>
	function openUrl(sUrl){
		parent.document.all.mainfrm.src = sUrl;
	}
</script>
<table border="0" cellspacing="0" cellpadding="0" style="display:;width:100%; height:100%;" align="center">
	<tr>
		<td height="100"><img src="pic/LOGO.gif" border=0></td>
	</tr>
  <tr>
    <td valign="top" align="center" height="300">
<script language="javascript">
    var outlookbar = new outlook();
	var t = outlookbar.addtitle("鲤鱼网");
    outlookbar.additem("游戏点卡",t,2,"openUrl('/');");
    outlookbar.additem("货比三家",t,2,"openUrl('/eprice');");
	var t1 = outlookbar.addtitle("鲤鱼论坛");
    outlookbar.additem("论坛下载",t1,2,"openUrl('download.jsp');");
<%          
	String jumpBoard = "";
	try{
		Vector gateWayVector=GateWayFactory.getGateWays();
		for(int i=0;i<gateWayVector.size();i++)
		{
    		GateWay gateWay=(GateWay)gateWayVector.get(i);
    		int gateWayID=gateWay.getGateWayID();
    		String gateWayName=gateWay.getGateWayName();
				jumpBoard += "var t"+gateWayID+" = outlookbar.addtitle(\""+gateWayName+"\");\n";
				Vector forumVector=ForumFactory.getForums(gateWayID);
				for(int j=0;j<forumVector.size();j++){
						Forum theListForum=(Forum)forumVector.get(j);
						jumpBoard += "outlookbar.additem(\""+theListForum.getForumType()+"\",t"+gateWayID+",2,\"openUrl('list.jsp?forumID="+theListForum.getForumID()+"')\");\n";
				}
		}
	}
	catch(Exception e){
		jumpBoard = "";
		e.printStackTrace();
	}
	out.print(jumpBoard);
%>
    //outlookbar.opentitle = t1;
    outlookbar.show();
</script>
    </td>
  </tr>
	<tr>
		<td height="70">&nbsp;</td>
	</tr>
	<tr>
		<td>
        <iframe name="exobud_mp" src="plugin/music/exobud.htm" width="100%" height="100%" marginwidth="0" marginheight="0"border="0" frameborder="0" scrolling="no"></iframe>			
		</td>
	</tr>
</table>

⌨️ 快捷键说明

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