求一个javascript写的不间断跑码灯的效果

来源:百度知道 编辑:UC知道 时间:2024/05/10 09:10:45
我们知道用<marquee>中间会有间断,不知道谁能给我个不间断的代码?

<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]==''){
str='<img style="margin:3px;" border=0