文本定时切换
#newslist{
background:#f8f8f8;border:1px solid silver;padding:1px;height:20px;line-height:20px;width:80px;
}
#contain{
font-size:12px;overflow:hidden;list-style:none;width:80px;height:20px;margin:0px;padding:0;
}
#contain li{
height:20px;line-height:20px;white-space:nowrap;overflow:hidden;padding-left:5px;
}
function xx(){
var container=document.getElementById("contain");
container.appendChild(container.firstChild);
}
setInterval("xx()",3000);