asp动态图片

fengyunjih 2009-07-15 10:39:02
asp动态图片,在图片下面加上文字,让一行显示,我做到总是垂直显示,请高手帮助
问题补充:请高人指点
<div id="top2">
<table width ="500" height ="30" border="0" align ="center" cellspacing="0">
<marquee behavior="alternate" onmouseover="this.stop();" scrollamount="3" direction="left" onmouseout="this.start();" >
<table>
<%
while (not rs.eof)
%>

<a href ="xx.asp?bh=<%=rs("z_id")%>"><img src=<%=rs("tupian") %> width="80" height ="80" ><p><% =rs("z_name") %> </p></a>

<%
rs.movenext()
wend
%>
</table>
</marquee>
</table>
</div>

还是一个图片,下面是文字,然后向下排列,一个图片下面是文字然后接着往下,我想让图片,下面是文字,然后想右面横着是图片,图片下面是文字,实现不了。
...全文
54 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Y_Leopard 2009-07-16
  • 打赏
  • 举报
回复

<div id="top2">
<marquee behavior="alternate" onmouseover="this.stop();" scrollamount="3" direction="left" onmouseout="this.start();" >
<table width ="500" height ="30" border="0" align ="center" cellspacing="0">
<table>
<tr>
<%
while (not rs.eof)
%>
<td>
<a href ="xx.asp?bh= <%=rs("z_id")%>"> <img src= <%=rs("tupian") %> width="80" height ="80" >
<p> <% =rs("z_name") %> </p> </a>
</td>
<%
rs.movenext()
wend
%>
</tr>
</table>
</table>
</marquee>
</div>
Y_Leopard 2009-07-16
  • 打赏
  • 举报
回复
<div id="top2"> 
<table width ="500" height ="30" border="0" align ="center" cellspacing="0">
<marquee behavior="alternate" onmouseover="this.stop();" scrollamount="3" direction="left" onmouseout="this.start();" >
<table>
<tr>
<%
while (not rs.eof)
%>
<td>
<a href ="xx.asp?bh= <%=rs("z_id")%>"> <img src= <%=rs("tupian") %> width="80" height ="80" > <p> <% =rs("z_name") %> </p> </a>
</td>
<%
rs.movenext()
wend
%>
</tr>
</table>
</marquee>
</table>
</div>
fengyunjih 2009-07-16
  • 打赏
  • 举报
回复
5楼的不行,图片固定不动啦,6楼的能动,但是充满整个页面,4楼的最符合我的目的,谢谢大家啦,1楼的不能达到我的目的。
ygyjack 2009-07-15
  • 打赏
  • 举报
回复
<div id="top2"> 
<table width ="500" height ="30" border="0" align ="center" cellspacing="0">
<tr>
<td>
<marquee behavior="alternate" onmouseover="this.stop();" scrollamount="3" direction="left" onmouseout="this.start();" >
<table>
<tr>
<% while (not rs.eof) %>
<td>
<a href ="xx.asp?bh= <%=rs("z_id")%>"> <img src=<%=rs("tupian")%> width="80" height ="80"><br><% =rs("z_name") %></a>
</td>
<% rs.movenext()
wend %>
</tr>
</table>
</marquee>
</td>
</tr>
</table>
</div>
fengyunjih 2009-07-15
  • 打赏
  • 举报
回复
我的文字就是,<p> <% =rs("z_name") %> </p>这句,数据库里的图片名字
fengyunjih 2009-07-15
  • 打赏
  • 举报
回复
还是垂直排列,而且本来动的图片,变固定啦
lzp4881 2009-07-15
  • 打赏
  • 举报
回复
<div id="top2">
<table width ="500" height ="30" border="0" align ="center" cellspacing="0">
<marquee behavior="alternate" onmouseover="this.stop();" scrollamount="3" direction="left" onmouseout="this.start();" >
<table>
<%
while (not rs.eof)
%>
<tr><td>
<a href ="xx.asp?bh= <%=rs("z_id")%>"> <img src= <%=rs("tupian") %> width="80" height ="80" > <p> <% =rs("z_name") %> </p> </a>
</td></tr>
<tr><td>
这个地方放文字
</td></tr>
<%
rs.movenext()
wend
%>
</table>
</marquee>
</table>
</div>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧