!~~ASP高手进!~~~~~在线等!

来源:百度知道 编辑:UC知道 时间:2024/06/22 12:37:08
如何实现动态图片从页面中间开始滚动啊 如果用<MARQUEE>……</MARQUEE>标记的话 图片是从两边开始滚动的 所以这种方法不行 希望大虾们能帮我想个办法 最好是把下面这段代码改好 发布出来 ! 谢谢!~~

原代码如下:
<%
set rs=conn.execute("Select *, Towid,title,synopsis,nkey,gg01,gg02,defaultpic from news_info where pic= 1 and flag=0 and audit=0 and classid=23 and pagenum<2 order by towid desc")
if Rs.eof and Rs.bof then
response.Write("<table cellpadding=0 cellspacing=5 border=0 align=center>")
response.Write("<tr><td><div align=center style='line-height:200%'>")
response.Write("<li>暂无数据</li>")
response.Write("<li>请先提交数据</li>")
response.Write("</div></td></tr></table>")
else
dim i
i=0
response.Write("<table width=450 align=center cellpadding=0 cellspacing=0 border=0><tr>")
do while not rs.eof
i=i+1
response.wri

<%
set rs=conn.execute("Select *, Towid,title,synopsis,nkey,gg01,gg02,defaultpic from news_info where pic= 1 and flag=0 and audit=0 and classid=23 and pagenum<2 order by towid desc")
if Rs.eof and Rs.bof then
response.Write("<table cellpadding=0 cellspacing=5 border=0 align=center>")
response.Write("<tr><td><div align=center style='line-height:200%'>")
response.Write("<li>暂无数据</li>")
response.Write("<li>请先提交数据</li>")
response.Write("</div></td></tr></table>")
else
dim i
i=0
response.Write("<table width=450 align=center cellpadding=0 cellspacing=0 border=0><tr>")
do while not rs.eof
i=i+1
response.write("<td align=center height=140 class=h2><a href='newsdetail.asp?id="&rs(0)&"'><img src="&rs(6)