幻灯片获取id号时,只获取了一个
<%Set rs=Server.CreateObject("Adodb.Recordset")
Sqlset="select * from SMT_yp where SMT_logo<>'' and SMT_iename<>'' order by SMT_id desc"
rs.Open Sqlset,conn,1,3
if not rs.eof then
tp=""
do while not rs.eof
tp="../"+rs("SMT_logo")+"|"+tp
tc=rs("SMT_id")
tp1=rs("SMT_coname")+"|"+tp1
rs.movenext
loop
tp=left(tp,len(tp)-1)
tp1=left(tp1,len(tp1))
tc=left(tc,len(tc))
%>
<table border="0" width="420" id="table15" cellspacing="0" cellpadding="0" height="215" style="border: 1px solid #a8a4a7">
<tr>
<td valign=top>
<SCRIPT type=text/javascript>
<!--
var focus_width=500
var focus_height=115
var text_height=20
var swf_height = focus_height+text_height
var pics='<%=tp%>'
var links='../index.asp?id=<%=tc%>'
var texts='<%=tp1%>'
var text='<%=tp1%>'
// texts文字说明这里没用 1|2|3|4|5|6
document.write('<object ID="focus_flash" 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/pixviewer1.swf"><param name="quality" value="high"><param name="bgcolor" value="#E5E5EB">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&text='+text+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="../img/pixviewer1.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&text='+text+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#E5E5EB" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www. />');document.write('</object>');
//-->
</SCRIPT> </td>
</tr>
</table>
<%end if
rs.close%>
求助:在获取下一张幻灯片tc的id时,只获取到第一个图片的id号,没办法获取到下一张图片的id号,请问这个要怎么修改才是对的啊?
[ 本帖最后由 zdloveday 于 2010-10-21 15:17 编辑 ]