怎么做成不间断的跑马灯效果??/

来源:百度知道 编辑:UC知道 时间:2024/05/23 01:28:36
我的意思是说,从头跑到尾在接上第一个图片

//定义相关函数

<script language="javascript" type="text/javascript">
function ini(arr,hght,spd,width,height){
document.write('<DIV id=sch onmouseover="try{clearTimeout(timer1);}catch(e){;}" style="OVERFLOW: hidden;width:'+width+';HEIGHT:'+height+'px" onmouseout="timer1=setInterval(\'newsScroll()\','+spd+')">');
document.write('<table id=bb style=" Height: '+height+'px; POSITION: relative; Left:0px;TOP: 0px;"><tr>');
document.write('<td id=sch_0 nowrap> </td>');
document.write('<td id=sch_1 nowrap> </td>');
document.write('</tr></table>');
document.write('</div>');
var str="";
for(var i=0;i<arr.length;i++){
//alert(arr[i][0]);
if(arr[i][2]==''){
st