roomlist.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"
  2. import = "java.io.*"
  3. import = "cn.js.fan.util.*"
  4. import = "com.redmoon.chat.*"
  5. %>
  6. <%
  7. String user = ParamUtil.get(request, "user");
  8. String room = ParamUtil.get(request, "room");
  9. %>
  10. <HTML>
  11. <HEAD>
  12. <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  13. <TITLE>房间列表</TITLE>
  14. <META content="text/html; charset=utf-8" http-equiv=Content-Type>
  15. <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
  16. <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
  17. <META HTTP-EQUIV="Expires" CONTENT="0"> 
  18. <link href="common.css" rel="stylesheet" type="text/css">
  19. <SCRIPT LANGUAGE=javascript>
  20. <!--
  21. function GetRooms(url) {
  22. try {
  23.      RoomsLoader.src = url;
  24.     } catch(e) {
  25.         return false;
  26.     }
  27. }
  28. function jumptoroom(room)
  29. {
  30. if (typeof(window.parent.chatappletarea.jumptoroom)=="function") {
  31. window.parent.chatappletarea.jumptoroom(room);
  32. window.location.reload(true);
  33. }
  34. }
  35. function parseRooms(vrooms)
  36. {
  37. var infg = "#$#";
  38. var outfg = "#*#";
  39. rooms.innerHTML = vrooms;
  40. var vrooms = rooms.innerHTML;
  41. var roomary = vrooms.split( outfg );
  42. vrooms = "";
  43. var ary;
  44. for (i=0; i<roomary.length; i++)
  45. {
  46. ary = roomary[i].split(infg)
  47. vrooms += "<A href=javascript:jumptoroom('"+ary[0]+"')>"+ary[0]+"</A> ("+ary[1]+"人)<br>"
  48. }
  49. rooms.innerHTML = vrooms;
  50. }
  51. //-->
  52. </SCRIPT>
  53. <script id="RoomsLoader" language="JavaScript" type="text/javascript" defer></script>
  54. <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
  55. <!--
  56. function window_onload() {
  57. GetRooms("chatclient.jsp?mode=roomlist&user=<%=StrUtil.UrlEncode(user)%>&room=<%=StrUtil.UrlEncode(room)%>");
  58. }
  59. //-->
  60. </SCRIPT>
  61. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
  62. <BODY background="images/pic-right-back.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="return window_onload()" LANGUAGE=javascript>
  63. <table width="127" height="90%" border="0" cellpadding="0" cellspacing="0">
  64.   <tr> 
  65.     <td height="25" valign="bottom" background="images/pic-right-top.gif"> <div align="center"> 
  66.         <span class="right-title">房间列表</span><br>
  67.       </div></td>
  68.   </tr>
  69.   <tr> 
  70.     <td height="100%" valign="top" background="images/pic-right-mid.gif"> <div align="center"> 
  71. <span id=rooms></span>
  72.         </div></td>
  73.   </tr>
  74.   <tr> 
  75.     <td><img src="images/pic-right-bot.gif" width="127" height="9"></td>
  76.   </tr>
  77. </table>
  78. </BODY>
  79. </HTML>
  80. <html></html>