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

来源:百度知道 编辑:UC知道 时间:2024/05/20 09:02:43
朋友给了个网站,中间有一段是滚动图片,并由代码自动添加的。但每次滚动完都有很大一段空白。怎么样才做到无空白。代码如下:
<%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 "<t

就是连续滚动图片吗? 你那是隔开了的!

这是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>
</ta