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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>发送</title>
  7. </head>
  8. <script>
  9. function SendMsg(user, room, message) {
  10. form1.user.value = user;
  11. form1.room.value = room;
  12. form1.message.value = message;
  13. form1.mode.value = "send";
  14. form1.submit();
  15. }
  16. function JumpToRoom(user, room, newroom) {
  17. form1.user.value = user;
  18. form1.room.value = room;
  19. form1.newroom.value = newroom;
  20. form1.mode.value = "jumptoroom";
  21. form1.submit();
  22. }
  23. function rename(user, room, newuser) {
  24. form1.user.value = user;
  25. form1.room.value = room;
  26. form1.newuser.value = newuser;
  27. form1.mode.value = "rename";
  28. form1.submit();
  29. }
  30. function getRoomInfo(user, room) {
  31. form1.user.value = user;
  32. form1.room.value = room;
  33. form1.mode.value = "roominfo";
  34. form1.submit();
  35. }
  36. function getUserInfo(user, room, nick) {
  37. form1.user.value = user;
  38. form1.room.value = room;
  39. form1.nick.value = nick;
  40. form1.mode.value = "getuserinfo";
  41. form1.submit();
  42. }
  43. function sendAnnounce(user, room, str) {
  44. form1.user.value = user;
  45. form1.room.value = room;
  46. form1.announce.value = str;
  47. form1.mode.value = "sendAnnounce";
  48. form1.submit();
  49. }
  50. function KickSb(user, room, sb) {
  51. form1.user.value = user;
  52. form1.room.value = room;
  53. form1.sb.value = sb;
  54. form1.mode.value = "kicksb";
  55. form1.submit();
  56. }
  57. </script>
  58. <body>
  59. <form action="sender_do.jsp?" id="form1" name="form1" target="senderdoFrame">
  60.    用户名
  61.    <input name="user">
  62.    <br>
  63.   房间
  64.    <input name="room">
  65.    <br>
  66.   消息
  67. <input name="message">
  68. <br>
  69.   新用户名
  70. <input name="newuser">
  71. <br>
  72.   取用户信息
  73. <input name="nick">
  74. <br>
  75.   踢除
  76. <input name="sb">
  77. <br>
  78.   茶室公告
  79. <input name="announce">
  80. <br>
  81. 模式
  82. <input name="mode"><br>
  83. 新房间
  84. <input name="newroom">
  85. </form>
  86. </body>
  87. </html>