新的文本由下向上把旧的文本替换掉:主要是对CSS和DIV的应用。
只要我们想要更新数据时,就可以调用setTest()方法,传递想要显示的字符串,而且如果当前信息正在滚动时,那么传递的字符串信息会缓充起来,当前信息显示完毕后再显示下一条
<
html
>
< head >
< title ></ title >
< style type = " text/css " >
.divs ... {
overflow:hidden;
background-color:#F8F8FF;
border:0px solid black;
width:200;
height:20;
position:relative;
top:0px;
left:0px;
}
</ style >
< script type = " text/javascript " >
var height = 21 ;
var rootObj; // 根DIV
var topObj; // 被替换的DIV
var tem = 0
< head >
< title ></ title >
< style type = " text/css " >
.divs ... {
overflow:hidden;
background-color:#F8F8FF;
border:0px solid black;
width:200;
height:20;
position:relative;
top:0px;
left:0px;
}
</ style >
< script type = " text/javascript " >
var height = 21 ;
var rootObj; // 根DIV
var topObj; // 被替换的DIV
var tem = 0