?? b1.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<%@page import="java.util.*" %>
<html>
<head>
<!-- 每3秒鐘刷新一次 -->
<META http-equiv="refresh" content="3">
<title></title>
<script type="text/javascript">
<%--使信息屏幕一直處在最下方--%>
function window_onload(){this.scroll(0,6000);}
</script>
</head>
<body style="FONT-SIZE:15PX" bgcolor="#FFFFCC" onLoad="return window_onload()">
<jsp:useBean id="chatbase" scope="application" class="tryChat.DataBaseOfChatRoom"></jsp:useBean>
<jsp:useBean id="userInfo" scope="session" class="tryChat.CurrentlyUser"></jsp:useBean>
<jsp:useBean id="chatHome" scope="application" class="tryChat.ChatHome"></jsp:useBean>
<%
//初始化聊天室,如果記錄超過100句則更新聊天記錄
ArrayList noteList=chatHome.getChatNoteList();
if(noteList.size()>100){
String a1=(String)noteList.get(98);
String a2=(String)noteList.get(99);
String a3=(String)noteList.get(100);
noteList=new ArrayList();
noteList.add("<font color=\'gray\'>系統信息:****系統刷新聊天記錄*****</font>");
noteList.add(a1);
noteList.add(a2);
noteList.add(a3);
chatHome.setChatNoteList(noteList);
}
String str=chatHome.getAllChatNote();
out.print(str);
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -