急,帮忙看看这段代码
从img数据库中读取记录,然后在页面上用幻灯显示,但是显示不了,高手看看是什么原因.急啊,做不出来扣工资了....
<td >
<a target="_self" href="javascript:goUrl()">
<span>
<script type="text/javascript">
<%
set rs=server.createobject("adodb.recordset")
sql="select top 5 * from img order by id desc"
rs.open sql,conn,1,1
for i=1 to rs.recordcount
%>
imgUrl<%=i%>="imgshow.asp?id=<%=rs("id")%>";
imgtext<%=i%>="<%=cutstr(rs("title"),12,"..")%>"
imgLink<%=i%>=escape("<%=rs("imgu")%>");
<%
rs.movenext
next
%>
var focus_width=220
var focus_height=220
var text_height=0
var swf_height = focus_height+text_height
var pics=""
<%
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
pics=pics+imgUrl<%=i%>
<%
else
%>
pics=pics+imgUrl<%=i%>+"|"
<%
end if
next
%>
var links=""
<%
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
links=links+imgLink<%=i%>
<%
else
%>
links=links+imgLink<%=i%>+"|"
<%end if
next%>
var texts=""
<%
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
texts=texts+imgtext<%=i%>
<%
else
%>
texts=texts+imgtext<%=i%>+"|"
<%
end if
next
rs.close
set rs=nothing
%>
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="img/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www. />'); document.write('</object>');
</script>
</span>
</a></td>