聊天室代码修改
我的聊天室想增加一些功能 原来不能添加图片 添加超连接 现在应该在哪里修改呢
请大家多提出建议哈 我是初学
<HTML>
<HEAD>
<%@ page
language="java"
contentType="text/html; charset=GB2312"
pageEncoding="GB2312"
%>
<META http-equiv="Content-Type" content="text/html; charset=GB2312">
<%@page import="java.util.*"%>
<link rel="stylesheet" href="chat.css">
<script language="JavaScript" type="">
function checkForm() {
if (document.chatForm.usermessage.value == "") {
alert("发言不能为空!");
document.chatForm.usermessage.focus();
return false;
}
else {
document.chatForm.usermessage.focus();
return true;
}
}
function userLogout() {
top.window.location="login.jsp?logout=yes";
}
function openWindow(url) {
var newWin = window.open(url,"","toolbar=no,status=no,scrollbars=yes,menubar=no,width=450,height=320");
return false;
}
</script>
</HEAD>
<BODY bgcolor="#FF9900" >
<FORM name="chatForm" method="post" action="input.jsp">
<table border="0" width="100%" align="center" cellspacing="0" cellpadding="0">
<tr valign="top"><td>
<%
request.setCharacterEncoding("gb2312");
String first = (String)request.getParameter("first");
String talkMessage=(String)request.getParameter("usermessage");
String action = (String)request.getParameter("action");
String fontcolor = (String) request.getParameter("fontcolor");
String talkwith =(String)request.getParameter("talkwith");
String systemSpeak=(String) request.getParameter("systemSpeak");
//用户等级资料
String experience = (String)session.getAttribute("experience");
if (experience == null)
{
experience = "0";
}
/*
if (userlevel == null)
{
userlevel = "过客";
}
*/
String Name=(String)session.getAttribute("username");
session.setAttribute("sName",Name);
out.println("【<font color='#0000ff'>"+Name+"</font>】"+"对");