可以有sql标签来做
sql语句
select Content,ID,Title from KS_Announce order by addate desc
循环体
<DIV id=demo onmouseover=ii=1 style="OVERFLOW: hidden; HEIGHT: 180px" onmouseout=ii=0>
<DIV id=demo1>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
[loop=20]
<tr>
<td><a href="/plus/announce.asp?id={$Field(ID,GetInfoUrl,0,2)}">{$Field(Title,Text,0,...,0,)}</a></td>
</tr>
<tr><td>{$Field(Content,Text,200,...,0,)}</td></tr>
[/loop]
</table>
</DIV>
<DIV id=demo2>
<SCRIPT>
var ii=0;t=demo.scrollTop
demo2.innerHTML=demo1.innerHTML
function qswhMarquee(){
if (ii==1)return
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else
demo.scrollTop++
}
setInterval(qswhMarquee,60)
</SCRIPT></DIV>