找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
查看: 217|回复: 4

[程序代码] 如何把图中两模块位置互换??

[复制链接]
发表于 2010-5-9 11:47:30 | 显示全部楼层 |阅读模式

首页代码:
  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <!--#include file="pcfinal.asp"-->
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  7. <title><%=pf_site_name%>- 网站首页</title>
  8. <meta name="author" content="<%=pf_site_url%>">
  9. <meta name="keywords" content="<%=pf_site_keywords%>">
  10. <meta name="description" content="<%=pf_site_description%>">
  11. <link href="style.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <!--#include file="header.asp"-->
  15. <div id="content_main">
  16.         <div id="content" class="layout_center">
  17.                 <!--#include file="index_left.asp"-->
  18.                 <div id="right">
  19.                         <%
  20. Set rs = server.CreateObject("adodb.recordset")
  21. sql = "select * from pf_custom "
  22. rs.Open sql, conn, 1, 1
  23. if not rs.eof then
  24. %>
  25.                         <div class="right_title"><span class="float_right"><a href="custom.asp?id=<%=rs("ID")%>">详情</a></span>
  26.                                 <h2><%=rs("pf_custom_name")%></h2>
  27.                         </div>
  28.                         <div class="right_body"> <%=rs("pf_custom_short_content")%> </div>
  29.                         <%
  30.                         end if
  31. rs.Close
  32. Set rs = Nothing

  33. %>
  34.                         <div class="right_bottom"></div>
  35.                         <div class="right_title"><span class="float_right"><a href="products.asp">更多</a></span>
  36.                                 <h2>最新产品</h2>
  37.                         </div>
  38.                         <div class="right_body">
  39.                                 <ul class="products">
  40.                                         <%
  41. Set rs = server.CreateObject("adodb.recordset")
  42. sql = "select top 8 * from pf_products order by pf_products_order desc"
  43. rs.Open sql, conn, 1, 1
  44. Do While Not rs.EOF

  45. %>
  46.                                         <li><a href="products_view.asp?id=<%=rs("ID")%>"><img src="<%=rs("pf_uploadfile")%>" width="124" height="93" alt="<%=rs("pf_products_name")%>" title="<%=rs("pf_products_name")%>" /></a><br />
  47.                                                 <a href="products_view.asp?id=<%=rs("ID")%>"><%=left(rs("pf_products_name"),10)%></a></li>
  48.                                         <%
  49. rs.movenext
  50. Loop
  51. rs.Close
  52. Set rs = Nothing

  53. %>
  54.                                 </ul>
  55.                         </div>
  56.                         <div class="right_bottom"> </div>
  57.                         <div class="right_title"><span class="float_right"><a href="news.asp">更多</a></span>
  58.                                 <h2>最新新闻</h2>
  59.                         </div>
  60.                         <div class="right_body">
  61.                                 <ul class="news">
  62.                                         <%
  63.         Set rs = server.CreateObject("adodb.recordset")
  64.     sql = "select top 8 * from pf_news order by pf_news_order desc"
  65.     rs.Open sql, conn, 1, 1
  66.     Do While Not rs.EOF
  67.         Set rsc = server.CreateObject("adodb.recordset")
  68.         sql = "select * from pf_news_category where id = "&rs("pf_news_category")&""
  69.         rsc.Open sql, conn, 1, 1
  70.                 %>
  71.                                         <li><span class="float_right"><%=formatdatetime(rs("pf_news_date"),2)%></span>[<a href="news_category.asp?id=<%=rsc("ID")%>"><%=rsc("pf_news_category_name")%></a>] <a href="news_view.asp?id=<%=rs("ID")%>" title="<%=rs("pf_news_name")%>"><%=left(rs("pf_news_name"),30)%></a></li>
  72.                                         <%
  73.     rsc.Close
  74.     Set rsc = Nothing
  75.                 rs.movenext
  76.     Loop
  77.     rs.Close
  78.     Set rs = Nothing
  79.                                 %>
  80.                                 </ul>
  81.                         </div>
  82.                         <div class="right_bottom"></div>
  83.                 </div>
  84.                 <div class="float_clear"></div>
  85.         </div>
  86. </div>
  87. <!--#include file="footer.asp"-->
  88. </body>
  89. </html>
复制代码
头像被屏蔽
发表于 2010-5-9 22:06:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2010-5-9 22:19:03 | 显示全部楼层
楼下回答。。。。
jackypiero 发表于 2010-5-9 22:06



    早就给他解决了。。
发表于 2010-5-9 22:53:48 | 显示全部楼层
楼下回答。。。。
jackypiero 发表于 2010-5-9 22:06


楼上回答~
发表于 2010-5-9 23:03:10 | 显示全部楼层
看不懂问题,楼下解说
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2024-5-19 19:02 , Processed in 0.026824 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表