<div style="width:264;height:31;overflow:hidden">
<nobr style="position:relative;top:0;width:264" id=news>
<img src="../../infoimages/images6/20051119224847734.gif";><img src="../../infoimages/images6/20051119224847734.gif";><img src="../../infoimages/images6/20051119224847734.gif";>
</nobr>
<script language="JScript">
function newsScroll(){
//news的居左距离等于它的居左距离取余它的宽度的一半
news.style.pixelLeft=(news.style.pixelLeft-1)%(news.clientWidth/2);
}
setInterval('newsScroll()',10);//循环执行函数
</script>
在线调试此代码:http://tool.chinahtml.com/html_run.html