ASP代码问题请高人帮忙

来源:百度知道 编辑:UC知道 时间:2024/05/15 17:55:31
小弟不才刚学习ASP,想把以下代码里显示出来的数据由下到上滚动,并备注里的数据只限制显示20个文字,代码在下:
<!--#include file="init.asp"-->
<%
Function IIf(i,j,k)
If i Then IIf = j Else IIf = k
End Function
sql="select keyno,content,location,price,picfang3,nomflag from [house] where nomflag = '1'"
set rs=Cn.execute(sql)
if rs.eof then
response.write "没有记录"
response.end()
end if%>
<table width="775" height="120" border="0">
<tr>
<th width="120" height="20" scope="col" bgcolor="#C0C0C0"><font size="2">图片</font></th>
<th width="171" scope="col" bgcolor="#C0C0C0"><font size="2">小区名字</font></th>
<th width="288" scope="col" bgcolor="#C0C0C0"><font size="2">备注</font&g

sql="select top 20 keyno,content,location,price,picfang3,nomflag from [house] where nomflag = '1'"

在内容那里加上
<marquee scrollamount="3" direction="up" onMouseOver="this.stop()" onMouseOut="this.start()"></marquee>

你的代码乱的不成样子

你的代码乱的不成样子

真不太乱了,都没对齐,要是真的出错了,连你自己都找不到