站内公告
寂寞驿站 | 站内动态 | 文学知识 | 驿站图库 | 资源下载 | 影音在线 | 我要留言 | 周公解梦 | 寂寞论坛

:::会 员 登 陆:::  
 名  称  
 密  码  
 验证码   
  

:::超 级 搜 索:::  
栏  目  
类  别  
关键词  
 站内搜索   网络搜索
  

:::热门文章TOP10:::  
 独自寂寞
 毛泽东与《红楼梦》
 道歉情书
 第一次犯错
 爱是寂寞撕的谎
 老子道德经(白话文注解)
 羊脂球
 谈看书
 《红楼梦》十个为什么
 中国人的宗教

:::版权及免责声明:::  

  本站资料文章其版权归作者本人所有。
  如果有任何侵犯您版权的地方,请尽快与本站联系!

 来    源: 寂寞驿站
 作    者: 寂寞的狼
 发表日期: 2007-2-24 11:25:07
 阅读次数: 7633
 文章标题: 网站建设网站编程 → asp图片排列分页简单办法
 查看权限: 普通文章
 查看方式: 查看:[ 大字 中字 小字 ] [双击滚屏]
 正    文:
asp图片排列分页简单办法

办法一:调用以下代码就可以了

sub ArticleContent(intTitleLen)
    dim i,strTemp
    i=0
 x=1
 response.Write("<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td>")
 do while not rsArticle.eof
    if x=1 then
       response.Write("<tr>")
    end if
  strTemp=""
  'strTemp = strTemp & ""
  strTemp= strTemp & "<td><table width=100% border=0 cellspacing=3 cellpadding=0>"
                strTemp= strTemp & "<tr>"
                strTemp= strTemp & "<td width=25% rowspan=1>"
                strTemp= strTemp & "<div align=center><a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">"
                strTemp= strTemp & "<img onload='javascript:DrawImage(this);'border=0 src=" & rsArticle("DefaultPicUrl") & ">"
                strTemp= strTemp & "</a></div></td>"
                strTemp= strTemp & "</tr>"
                strTemp= strTemp & "<tr><td align=center rowspan=1 height=25>"
                strTemp= strTemp & "<a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">" & rsArticle("Title") & ""
                strTemp= strTemp & "</a></td>"
                strTemp= strTemp & "</tr>"
                strTemp= strTemp & "<tr>"
                strTemp= strTemp & "<td height=1></td>"
                strTemp= strTemp & "</tr>"
                strTemp= strTemp & "</table></td>"
  response.write strTemp
  rsArticle.movenext
  if x<=3 then
    x=x+1
  else
   response.Write("</tr>")
   x=1
   end if
  i=i+1
  if i>=MaxPerPage then exit do 
 loop
 response.Write("</table>")
end sub

[1] [2]  下一页


上一篇:ASP在线批量修改数据库
下一篇:aspjpeg高级使用方法
会员注册 | 版权声明 | 关于站长 | 超级搜索 | 友情链接 
Copyright© 2005-2010 寂寞驿站, All rights reserved。
站长:寂寞的狼 建站时间:2004-10-13 站长信箱:www@jmdl.net
粤ICP备16051526号