如何解决asp网站首页动态调用图片滚动失灵(急)

tkgggds 2010-05-20 12:31:59
[align=left]网站地址:www.chpxchina.net
问题:首页有两个栏目是展示图片。刚开始能滚动显示,不过最近不知道怎么回事不能滚动了,刷新N次后有时会滚动,很是急人,调用的是Class Of Marquee Scroll通用不间断滚动JS封装类。是写在MSClass.js调用,主页相关代码如下:对不住,贴的有些多,有什么不明白的可以发帖,我一般都在线的

<!--#Include File="Inc/Sql.Asp"-->
<!--#include file="Inc/Conn.Asp"-->
<!--#include file="Inc/inc.Asp"-->
<!--#include file="Inc/Function.Asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<link href="style/default.css" rel="stylesheet" type="text/css" />
<link href="images/qq/qq.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
.STYLE3 {font-size: 14px}
.STYLE8 {color: #00CC00}
-->
</style>
</head>

<script language=javascript src='inc/MSClass.js'></script>
<script language="javascript" src="images/qq/ServiceQQ.htm"></script>
<body>
< <td style=" border-right:1px solid #DBDBDB; border-left:1px solid #DBDBDB; padding:2px;"><div id="marquee1" style="width:880px;height:160px;overflow:auto;"><table width="880" height="160" border="0" cellspacing="0" cellpadding="0" style="display:inline">
<tr>
<%
sql="select * from tjxx where rootid=74 order by tim desc,id desc"
call setrs(sql,rs,1,1)
if not rs.eof then
do while not rs.eof
%>
<td align="center" style="padding:5px;"><table width="130" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="border:1px solid #7D5D12; padding:5px;"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank"><img src="<%=rs("photo")%>" width="120" height="117" border="0" alt="产后加盟婴儿用品妈妈用品展示中心<%=mid(rs("title"),1,7)%>" /></a></td>
</tr>
<tr>
<td height="25" align="center" style="color:#7A5F12;"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank" style="color:#000; text-decoration:none;"><%=mid(rs("title"),1,7)%></a></td>
</tr>
</table></td>
<%
rs.movenext
loop
rs.close
end if
%>
</tr>

</table> </div>
<script language="javascript">
new Marquee("marquee1",2,2,880,160,50,5000,3000,100000)
</script>


<%
sql="select top 6 * from tjxx where rootid=62 order by tim desc,id desc"
call setrs(sql,rs,1,1)
if not rs.eof then
do while not rs.eof
%>
<tr>
<td style="background-color:#ffffff; padding:3px; line-height:20px;" align="left"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank" style="color:#000; text-decoration:none;">· <%=mid(rs("title"),1,17)%></a></td>
</tr>
<%
rs.movenext
loop
rs.close
end if
%>



<%
sql="select top 6 * from tjxx where rootid=63 order by tim desc,id desc"
call setrs(sql,rs,1,1)
if not rs.eof then
do while not rs.eof
%>
<tr>
<td style="background-color:#ffffff; padding:3px; line-height:20px;" align="left"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank" style="color:#000; text-decoration:none;">· <%=mid(rs("title"),1,17)%></a></td>
</tr>
<%
rs.movenext
loop
rs.close
end if
%>
</table></td>

</tr>
<tr>
<td style=" border-right:1px solid #DBDBDB; border-left:1px solid #DBDBDB; padding:2px;"><div id="marquee" style="width:880px;height:240px;overflow:auto;"><table width="880" height="240" border="0" cellspacing="0" cellpadding="0" style="display:inline">
<tr>
<%
sql="select * from tjxx where rootid=64 order by tim desc,id desc"
call setrs(sql,rs,1,1)
if not rs.eof then
do while not rs.eof
%>
<td align="center" style="padding:5px;"><table width="130" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="border:1px solid #7D5D12; padding:5px;"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank"><img src="<%=rs("photo")%>" width="120" height="73" border="0" alt="产后恢复加盟人才<%=mid(rs("title"),1,7)%>" /></a></td>
</tr>
<tr>
<td height="25" align="center" style="color:#7A5F12;"><a href="newshow.asp?id=<%=rs("id")%>" target="_blank" style="color:#000; text-decoration:none;"><%=mid(rs("title"),1,7)%></a></td>
</tr>
</table></td>
<%
rs.movenext
ti=ti+1
if ti mod 6=0 then response.Write "</tr>"
loop
rs.close
end if
%>
</tr>
</table>
</div>
<script language="javascript">
new Marquee("marquee",2,2,880,240,50,5000,3000,100000)
</script
>
</td>
</tr>
<tr>

</tr>
<tr>
...全文
112 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sxdtlcx 2010-05-28
  • 打赏
  • 举报
回复
学习一下
yunxiang_myx 2010-05-27
  • 打赏
  • 举报
回复
你的循环判断条件有问题吧?
如果图片不是最后,就循环,如果图片最后一张结束了呢?
判断条件应该是有图片的情况下,循环始终为真,这样就可以了!
sql="select * from tjxx where rootid=74 order by tim desc,id desc"
call setrs(sql,rs,1,1)
if not rs.eof then
do while true
%>

不知道对不对。
yangtututu 2010-05-26
  • 打赏
  • 举报
回复
new Marquee("marquee",2,2,880,240,50,5000,3000,100000)


它的 参数调用情况 是 什么样的 ?? 你看以下 是 不是 有 循环次数限制

28,391

社区成员

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

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