注册 登录
编程论坛 ASP技术论坛

请问网站首页如何调用图片栏目中的分栏目内容

zhbawa 发布于 2011-12-02 09:49, 693 次点击
'首页
 function PhotoDex()
  dim rs,sql,i
  set rs = server.createobject("adodb.recordset")
  sql="select * from zhi_rui_e_po where ViewFlag=1 order by id desc"
  rs.open sql,conn,1,1
  response.write"<div class=""newpic_list"">"
  if rs.bof and rs.eof then
    response.write "<tr><td align='center'>暂无相关信息</td></tr>"
  else
    response.write"<ul>"
    for i=1 to 12' rs.recordcount
      if rs.eof then exit for
      response.write"<li><div class=""newpic_pic"">"
      response.write"<a  href='Photo_Show.asp?InfoId="&rs("ID")&"&ClassId="&rs("ClassId")&"&Topid="&rs("TopID")&"'><img src='"&rs("BigPic")&"' border=""0"" width=100 height=85></a></div>"
      response.write"<div class=""newpic_title"">"&left(rs("PhotoName"),10)&"</div></li>"
    if i mod 6 = 0 then
    response.write"</ul>"
    end if
      rs.movenext
    next
  end if
  response.write "</div>"
  rs.close
  set rs=nothing
end function


这段代码我实在修改不了了。谢谢!
6 回复
#2
zhbawa2011-12-02 09:51
只有本站会员才能查看附件,请 登录
#3
zhbawa2011-12-02 09:53
上边是这个文件。谢谢!!!首页调用的是PhotoDex()。是最新图片,我想调用图片频道分栏目的图片。

http://www. 就是这里演示。
#4
zhbawa2011-12-05 16:49
数据库图片

[local]1[/local]
#5
zhbawa2011-12-05 16:51


这是数据库图片

[ 本帖最后由 zhbawa 于 2011-12-5 16:52 编辑 ]
#6
zhbawa2011-12-06 12:47
什么呢!!!!
#7
zhbawa2011-12-06 13:46
我自己弄好了!!!!!这里真是没用的地方!!!!
1