求助,帮忙看看,谢谢!
<div id=demo onmouseover='this.stop()' onmouseout='this.start()' style="overflow:hidden;width:350px;height:185px;"><div id=demo1><table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
set rsnews=server.createobject("adodb.recordset")
sql1="select * from [news] order by news_id desc"
rsnews.open sql1,conn,1,3//这行
%>
<% do while not rsnews.eof %><tr>
<td> <font color="#FF6600">★</font> <a href="news_show.asp?id=<%=rsnews("news_id")%>" title="<%=rsnews("news_title")%>" target="_blank" class="news"><%=left(rsnews("news_title"),11)%><% if len(rsnews("news_title"))>11 then %>...<% end if %></a></td></tr>
<%
rsnews.movenext
loop
rsnews.close
set rsnews=nothing
%>
</table></div>
<div id=demo2></div>
</div> </td>
</tr>
<tr>
<td colspan="2"><table width="604" border="0" align="left" cellspacing="0" bgcolor="#E60000">
<tr>
<td width="122"> </td>
<td width="478"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="605" border="0" align="left" cellspacing="0" bgcolor="#E60000">
<tr>
<td width="122"> </td>
<td width="479"> </td>
</tr>
</table></td>
</tr>
</table>
<script language="JavaScript">
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
提示有错误:错误类型:
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
帮忙解决!谢谢