<html>
<head>
<title>类似于跑马灯的图片滚动</title>
<script language="javascript" type="text/javascript">
function RunImg()
{
var varSpan=document.getElementById("spanId");
if((parseInt(varSpan.style.left)+parseInt(varSpan.style.width))<=0)
varSpan.style.left= 750+"px";
varSpan.style.left=parseInt(varSpan.style.left)-5+"px";
window.setTimeout("RunImg()",100);
}
</script>
</head>
<body onload="RunImg()">
<span id="spanId" style="300px; background-repeat:no-repeat; left:750px;position:absolute;"><img src="图片路径" width="300" height="200" border="1"/></span>
</body>
</html>