大哥,实在不好意思,我是刚学的,所以不太会,但你的程序对从数据库掉出来的东西时该怎么用呢,比如我的:
<!--#include file="sc_inc/sc_conn.asp"-->
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<div id=demo style="overflow:hidden;height:80;width:410;color:#ffffff;">
<table align=left cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
<%
sql="select top 15 * from sc_xw where shenhe=1 and fgclose=1 and tuijian=1 and scxwlb_id=10 order by scxw_id desc"
set rs=Server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
while not rs.eof
if len(rs("scxwbt"))>11 then
scxwbt=left(rs("scxwbt"),11)
scxwbt=scxwbt &".."
else
scxwbt=rs("scxwbt")
end if
%>
<span class="dian">·</span><span class="setgray"><a href="<%=rs("scxwpath")%>" target="_blank"><U><%= scxwbt %></U></a></span><br>
<%
rs.movenext
wend
rs.close
set rs=nothing
%>
</td>
<td id=demo2 valign=top></td>
</tr>
</table>
</div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft+=demo2.offsetWidth
else{
demo.scrollLeft--
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
这是我套用你的,不行呀