会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Nice感觉
海绵不断的吸收
博客园
首页
新随笔
联系
订阅
管理
JS控制滚动条放在最下与关闭窗体不提示信息
简单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
();
posted on
2006-07-27 14:07
Gary.han
阅读(
1503
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部