50分求一个类似QQ发送框的例子,分不够可以再加 在google中找asp qq 下载这三个关键字应该有你要的东西 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下面是一个详细的代码演示:<script>var SendMsg ="" ;function ShowChatHistory(){ if(ChatHistory.style.display == "none") ChatHistory.style.display = "block"; else ChatHistory.style.display = "none"; ChatHistory.innerHTML = SendMsg ;}function SendMyMsg(){ if(MsgArea.innerText == "" ) { alert("信息内容不能为空!"); return; } SendMsg += "<font style='color:#FF0000;'>ricky(阿酷)</font>对<font style='color:#FF0000;'> hw2999 (凌云箭) </font>说: <font style='color:#0000FF;'>"+ MsgArea.innerText + "</font><br>"; MsgArea.innerText = "" ;}</script><div><textarea id="MsgArea" style="width:400px;height:300px;border:1px #000000 solid;"></textarea></div><br><button onClick="ShowChatHistory();">聊天记录</button> <button onClick="SendMyMsg();">发送信息</button><br><div id="ChatHistory" style="width:400px;height:100px;display:none;border:1px #000000 solid;font-size:12px;"></div> www.52its.com中的代码实例中有一个QQ的html格式的实例 jquery如何取得checkbox选中的值? ui.dialog.js打开的页面如何加入纵向滚动条? js 无法更换图片 JS压缩图片 在FireFox中textarea的数据删不了???? 灵异事件? 解决立结分 帮我看看,高分求教!!!!!!!!!!!!!! 在线等,怎么样点框架FrameA的链接就把ID传到另一个框架中? 帮忙看一下这段小程序 用javascript编写的页面刷新问题!??急急急! 对iframe的隐藏和显示的问题? javascript网易免费空间去除广告 正则表达式在netscape中的使用
var SendMsg ="" ;
function ShowChatHistory()
{
if(ChatHistory.style.display == "none")
ChatHistory.style.display = "block";
else
ChatHistory.style.display = "none";
ChatHistory.innerHTML = SendMsg ;
}
function SendMyMsg()
{
if(MsgArea.innerText == "" )
{
alert("信息内容不能为空!");
return;
}
SendMsg += "<font style='color:#FF0000;'>ricky(阿酷)</font>对<font style='color:#FF0000;'> hw2999 (凌云箭) </font>说: <font style='color:#0000FF;'>"+ MsgArea.innerText + "</font><br>";
MsgArea.innerText = "" ;
}
</script>
<div><textarea id="MsgArea" style="width:400px;height:300px;border:1px #000000 solid;"></textarea></div><br>
<button onClick="ShowChatHistory();">聊天记录</button>
<button onClick="SendMyMsg();">发送信息</button>
<br>
<div id="ChatHistory" style="width:400px;height:100px;display:none;border:1px #000000 solid;font-size:12px;"></div>