问个ASP的问题 希望高手帮忙解决

来源:百度知道 编辑:UC知道 时间:2024/05/25 06:44:56
<marquee scrolldelay=150 direction=left behavior=alternate width=100% align="middle" onmouseover="this.stop();" onmouseout="this.start();">

<table width="100%" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select Top "&zuixin&" * from shopxp_product where shopxp_new_pt=1 order by shopxpptid desc",conn,1,1
if rs.eof and rs.bof then
response.write "对不起,请您先到后台添加商品!"
else
do while not rs.eof
%>
<td><table width="110" height="130" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>

<!--滚动图片-->
<%
set rs = server.CreateObject("adodb.recordset")
sql = "select * from infor_link"
rs.open sql,conn,1,1
if rs.recordcount > 0 then
%>
<div id=demo style="overflow:hidden;height:500px; width:300px; color:#ffffff;"><div id="demo1">
<%do while not rs.eof%>
<a href="#" target="_blank"><img src="<%=rs("imgurl")%>" width="153" height="114" border="0"></a>
<%
rs.movenext
loop
%>

</div><div id="demo2"></div></div>

<%else%>
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr><