| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 361 人关注过本帖
标题:ASP关于首页调用图片排列数量的问题
只看楼主 加入收藏
ayqckj
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-3-10
收藏
 问题点数:0 回复次数:1 
ASP关于首页调用图片排列数量的问题
现在图片是单行从左到右的滚动的10张图片,我想改成一行显示三个,显示三行的9张图片效果。请教高手指教!:)
代码如下:
<table align=center cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
                              <table border="0" align="center" cellpadding="0" cellspacing="0" cellspace="0">
                                <tr>
                                  <td id="demo1" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                            
                                            <%                                   
 Set Rs=Server.CreateObject("Adodb.RecordSet")
Sql="select Top 9 * from Tx_Products where Products_ClassId=103 order by Products_Date desc"
Rs.Open sql,Conn,1,1
IF Rs.Recordcount=0 THEN
Call Page_check(4,0)
Else
While Not Rs.Eof                                   
i=0
%>

                              
                                              <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr>
                                                    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                          <td><table width="100" border="0" cellpadding="0" cellspacing="3">
                                                              <tr>
                                                                <td><table width="100" border="1" cellpadding="0" cellspacing="3" bordercolor="999999" bgcolor="#FFFFFF" onclick="window.open('Products.asp?Id=<%= Rs("Products_Id") %>', '')" style="CURSOR:hand">
                                                                    <tr>
                                                                      <td  align="center"><a href='Products.asp?Id=<%= Rs("Products_Id") %>' title='产品名称:<%= Rs("Products_Name") %>产品编号:<%= Rs("Products_Code") %>添加时间:<%= YearDa(Rs("Products_Date")) %>'><img src="<%= Rs("Products_Pic") %>" alt="" width="180" height="180" border="0" /></a></td>
                                                                    </tr>
                                                                </table></td>
                                                              </tr>
                                                            </table>
                                                              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                  <td width="200" align="center"><div align="center"><span style="font-weight: bold"><%= gotTopic(Rs("Products_Name"),12,1) %> </span> </div></td>
                                                                </tr>
                                                            </table></td>
                                                        </tr>
                                                    </table></td>
                                                  </tr>
                                              </table></td>
                                             
                                              <%
if i mod 3 = 0 then
response.write("</tr><tr>")  
end if
i=i+1
Rs.MoveNext

wend
End IF
Rs.Close
Set Rs=Nothing %>
                                            
                                            </tr>
                                        </table></td>
                                      </tr>
                                  </table></td>

                                  <td width="15" valign="top" id="demo2"></td>
                                </tr>
                              </table>
                            </td>
<td id=demo2 valign=top></td>
</tr>      
</table>
搜索更多相关主题的帖子: center border top 图片 
2012-03-10 13:49
ayqckj
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-3-10
收藏
得分:0 
有朋友来帮忙解答下么。。。。
2012-03-10 23:49
快速回复:ASP关于首页调用图片排列数量的问题
数据加载中...
 
   



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

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