简单JS
//限制滚动条
<style>
.Div { word-wrap: break-word; word-break: break-all; OVERFLOW:auto;height:400px;font-family:幼圆;}
</style>
//更新聊天内容显示
var div = document.all("chatcontent");
div.innerHTML = div.innerHTML + "<table width=750><tr><td><font color=" + textcolor +">" + strUserName + " " + expression + " >>" + " " + txtContent + "</font></td></tr></table>";
//DIV滚动条置下
chatcontent.scrollTop = chatcontent.scrollHeight; //置下
//刷新页面15秒执行
window.setTimeout(refresh_chatcontent, 15000);
//关闭窗体不提示信息
window.opener = null;
window.close();
//限制滚动条
<style>
.Div { word-wrap: break-word; word-break: break-all; OVERFLOW:auto;height:400px;font-family:幼圆;}
</style>
//更新聊天内容显示
var div = document.all("chatcontent");
div.innerHTML = div.innerHTML + "<table width=750><tr><td><font color=" + textcolor +">" + strUserName + " " + expression + " >>" + " " + txtContent + "</font></td></tr></table>";
//DIV滚动条置下
chatcontent.scrollTop = chatcontent.scrollHeight; //置下
//刷新页面15秒执行
window.setTimeout(refresh_chatcontent, 15000);
//关闭窗体不提示信息
window.opener = null;
window.close();