在google中找asp qq 下载这三个关键字应该有你要的东西

解决方案 »

  1.   

    下面是一个详细的代码演示:<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>
      

  2.   

    www.52its.com中的代码实例中有一个QQ的html格式的实例