ASP网页中滚动图片如何做到无空白!?

朋友给了个网站,中间有一段是滚动图片,并由代码自动添加的。但每次滚动完都有很大一段空白。怎么样才做到无空白。代码如下:<%setrs=server.createobjec... 朋友给了个网站,中间有一段是滚动图片,并由代码自动添加的。但每次滚动完都有很大一段空白。怎么样才做到无空白。代码如下:
<%set rs = server.createobject("adodb.recordset")
sql="select top 10 adid,pic,color,title,cu from [china_data] where mark='yes' and mark='yes' and stop >= date() and hotpoto=1 and pic <>'' "&cid&" order by [top] desc,money desc,adid desc"
rs.open sql,conn,1,1
if rs.eof then
response.write "无图片"
else
response.write "<marquee scrollamount=""2"" scrolldelay=""50"" onmouseover=""this.stop()"" onmouseout=""this.start()"" width=""95%""><table width=""100%"" border=""0"" cellspacing=""12"" cellpadding=""0""><tr valign=""bottom"">"
do while not rs.eof
response.write "<td align=""center""><a href=""html/"&rs("adid")&".htm"" target=""_blank""><img src=""adpic/"&rs("pic")&""" width=""125"" height=""100"" border=""0""></a><br>"
response.write "<a href=""html/"&rs("adid")&".htm"" target=""_blank"">"
if rs("cu")="yes" then
response.write "<b><font style=""font-size:9pt"""
if rs("color")<>"" then response.write " color="""&rs("color")&""""
response.write ">"&left(rs("title"),8)&"</font></b>"
else
response.write "<font style=""font-size:9pt"""
if rs("color")<>"" then response.write " color="""&rs("color")&""""
response.write ">"&left(rs("title"),8)&"</font>"
end if
response.write "</a></td>"
rs.movenext
loop
response.write "</tr></table></marquee>"
end if
rs.close:set rs=nothing%>

谢谢帮忙!
谢谢!你的代码好是好,但是不适用我的,而且我也不大懂代码。最好是直接在我的代码上帮忙修改。谢谢!
展开
 我来答
yiguang222
2007-10-23 · TA获得超过128个赞
知道小有建树答主
回答量:155
采纳率:0%
帮助的人:185万
展开全部
就是连续滚动图片吗? 你那是隔开了的!

这是DIV做的

<div align='center' id='demo' style='overflow:hidden;height:102px;width:657px;'>
<table align='center' cellpadding='0' cellspace='0' border='0'>
<tr>
<td id='demo1' valign='top'>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr valign='top'>

<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td width=8 rowspan=3 > </td>
</tr>
<tr>
<td align="center" ><img src="pic/pic1.jpg" width="59" height="95"></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td width=8 rowspan=3 > </td>
</tr>
<tr>
<td align="center" ><img src="pic/pic2.jpg" width="138" height="93"></td>
</tr>
</table></td>
<td align='center'>
<TABLE width=100% border=0 align=center cellPadding=0 cellSpacing=0>
<tr>
<td width=8 rowspan=3 > </td>
</tr>
<TR>
<TD align="center" ><img src="pic/pic3.jpg" width="79" height="93"></TD>
</TR>
</TABLE> </td>

<td align='center'>
<TABLE width=100% border=0 align=center cellPadding=0 cellSpacing=0>
<TR>
<TD width=8 rowspan=3 > </TD>
</TR>
<TR>
<TD align="center" ><img src="pic/pic4.jpg" width="79" height="93"></TD>
</TR>
</TABLE> </td>

<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic5.jpg" width="79" height="93"></a></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic6.jpg" width="79" height="93"></a></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic7.jpg" width="79" height="93"></a></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic8.jpg" width="106" height="93"></a></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic9.jpg" width="79" height="93"></a></td>
</tr>
</table></td>
<td align='center'> <table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr> </tr>
<tr>
<td width="8"> </td>
<td align="center" ><img src="pic/pic10.jpg" width="79" height="93"></a></td>
</tr>
</table></td>
</tr>
</table> </td>
<td id=demo2 valign=top></td>
</tr>
</table>
</div>
<script>
var Picspeed=10
demo2.innerHTML=demo1.innerHTML
function Marquee1(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee1,Picspeed)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee1,Picspeed)}
</script>

这是一个
晨控智能
2025-02-10 广告
可视化标签是广州晨控智能技术有限公司在物联网及自动识别领域的一项重要技术创新。通过先进的图形化界面设计,我们将复杂的数据信息转化为直观、易读的标签形式。这些标签不仅美观大方,更能够实时展示物品状态、库存数量、位置信息等关键数据。用户只需一眼... 点击进入详情页
本回答由晨控智能提供
创作者lBJUvRKgSd
2020-04-29 · TA获得超过3687个赞
知道大有可为答主
回答量:3055
采纳率:30%
帮助的人:456万
展开全部
<style
type="text/css">
<!--
body
{
margin-left:
0px;
margin-top:
0px;
margin-right:
0px;
margin-bottom:
0px;
}
-->
</style>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
seagullmaple
2007-10-23 · 超过47用户采纳过TA的回答
知道答主
回答量:245
采纳率:0%
帮助的人:137万
展开全部
用JAVA
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式