?? onechat.jsp
字號:
<%@ page errorPage="ErrorPage.jsp" %>
<%@ page contentType="text/html;charset=gb2312" %>
<jsp:useBean id="thisUser" scope="session" class="chatroom.oneUser" />
<jsp:useBean id="thischatroom" scope="application" class="chatroom.ChatRoom" />
<%
int intchatroom=Integer.parseInt(thisUser.getUserPosion());
%>
<HTML>
<HEAD>
<meta http-equiv="Refresh" content="<%=thisUser.getRetimeChat(intchatroom)%>;URL=/mytest/jsp/onechat.jsp">
<script language=javascript>
var timeRun=false;
var timeID;
function chatScroll(){
this.scroll(0,10000);
if(timeRun) clearTimeout(timeID);
timeID=setTimeout('chatScroll()',100);
timeRun=true;
}function scrollStop(){
if(timeRun) {clearTimeout(timeID); timeRun=false;}
else chatScroll();
}
function rop(){
setTimeout('rop()',10000);
}
chatScroll();
rop();
</script>
</HEAD>
<BODY>
<%
if (thisUser.getUserName() != null)
{String UserId=thisUser.getUserId();
String allSpeaking=thischatroom.returnAllSpeaking(intchatroom,UserId);
out.print(allSpeaking);
}
else out.print("尚未登錄,進入<a href='/mytest/jsp/login.jsp'>用戶登錄</a>");
%>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -