[求助]asp+文字滚动效果
<style type="text/css">#infozone{font-size:12px;color:#000;overflow:hidden;width:200px;height:20px;}
#infozone div{height:20px;line-height:20px;white-space:nowrap;overflow:hidden;}
</style>
<script type="text/javascript">
window.onload=function(){
var o=document.getElementById('infozone');
window.setInterval(function(){scrollup(o,20,0);},2000);
}
function scrollup(o,d,c){
if(d==c){
var t=o.firstChild.cloneNode(true);
o.removeChild(o.firstChild);
o.appendChild(t);
t.style.marginTop=o.firstChild.style.marginTop='0px';
}
else{
var s=3,c=c+s,l=(c>=d?c-d:0);
o.firstChild.style.marginTop=-c+l+'px';
window.setTimeout(function(){scrollup(o,d,c-l)},100);
}
}
</script>
<meta name="keyword" content="<%=Gaobei_keywords%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="other/style.css" rel="stylesheet" type="text/css">
<SCRIPT language=javaScript src="Include/gaobei.js" type=text/javascript></SCRIPT>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>//文字滚动代码
<%
sqlgg="select top 2 * from Announce order by Time DESC"
set rsgg=server.createobject("adodb.recordset")
rsgg.open sqlgg,conn,1,1
if not rsgg.eof then
i=0
do while (not rsgg.eof) and (i < 2)
i=i+1
%>
<div align="left"><a href="ggs.asp?id=<%=rsgg("id")%>"><%response.write mid(rsgg("Content"),1,55)%></a></div>
<%
rsgg.movenext
loop
else
response.write "<td align='center'>暂无消息</td>"
end if
rsgg.close
%></div>
数据库里面有两条数据 能滚动
但是滚动到第二条时 无法返回到第一条从新开始
请问各位大虾 这程序应该怎么改??