| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 468 人关注过本帖
标题:有关图片滚动的问题?
只看楼主 加入收藏
zy229
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-9-8
收藏
 问题点数:0 回复次数:0 
有关图片滚动的问题?

这段代码是显示动态图片的滚动,可图片虽然在循环,却不连接,是断开的,请教各位,应该怎样修改其中的代码才能使图片连续循环滚动?
<link href="../../style.css" rel="stylesheet" type="text/css"> <!--#include file="../../siteinfo1.asp"-->
<%
sql= "SELECT id,LPattern,LName,LPrice,LPH,LManufacturer,LAddtime FROM Products where LCommend=true and LPutout=true ORDER BY id DESC"
kingstr="推荐产品"
%>
<%
Response.Write"<table border='0' align='center' cellpadding='2' cellspacing='0'>"
'Dim ipagecount
'Dim ipagecurrent
'Dim strorderBy
'Dim irecordsshown
if request.querystring("page")="" then
ipagecurrent=1
else
ipagecurrent=cint(request.querystring("page"))
end if

'sql = "SELECT LPattern,LName,id,LPrice,LPH,LManufacturer,LAddtime FROM Products where LPutout=true ORDER BY id DESC"

Set rs = Server.CreateObject("ADODB.Recordset")
rs.pagesize = 4
rs.cachesize = 4
rs.open sql,conn,1,1
ipagecount = rs.pagecount
If ipagecurrent > ipagecount Then ipagecurrent = ipagecount
If ipagecurrent < 1 Then ipagecurrent = 1
if ipagecount=0 then

Response.Write"<tr><td align='center'><font color='#0000ff'>暂无产品记录!</font></td></tr>"
else
rs.absolutepage = ipagecurrent
irecordsshown = 0
Response.Write"<tr align='left'>"
do while irecordsshown<4 and NOT rs.EOF
Response.Write "<td style='1px solid; font-size: 8pt;'>"
Response.Write"<table align=center border=0 cellpadding=1 cellspacing=0 ><tr><td><a href='cpzs/display.asp?id="&rs("id")&"' target='_blank'><img src="&rs("LPattern")&" border='0' width=135 height=100 >"
Response.Write"</a></tr><tr><td align='center'><font size=2><a href='cpzs/display.asp?id="&rs("id")&"' target='_blank'>"&rs("LName")&"</a></font></td></tr></table></td>"
irecordsshown = irecordsshown +1
rs.movenext
loop
Response.Write"</tr>"
end if
rs.Close
set rs=nothing
Response.Write"</table>"
ProductsShu=4
%>

搜索更多相关主题的帖子: 滚动 css 动态 rel 
2006-09-08 16:28
快速回复:有关图片滚动的问题?
数据加载中...
 
   



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

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