| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 508 人关注过本帖
标题:幻灯片获取id号时,只获取了一个
只看楼主 加入收藏
zdloveday
Rank: 2
等 级:论坛游民
帖 子:221
专家分:96
注 册:2008-9-5
结帖率:68.89%
收藏
 问题点数:0 回复次数:1 
幻灯片获取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 编辑 ]
搜索更多相关主题的帖子: 幻灯片 获取 
2010-10-20 19:03
zdloveday
Rank: 2
等 级:论坛游民
帖 子:221
专家分:96
注 册:2008-9-5
收藏
得分:0 
没人~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

不懂----就无耻的下问吧----
2010-10-21 13:04
快速回复:幻灯片获取id号时,只获取了一个
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012303 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved