
JS滚动代码问题!不知道为什么不滚动
<tdwidth="266"><tablewidth="215"height="183"border="0"cellpadding="0"cellspacing="0">...
<td width="266"><table width="215" height="183" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="215" height="183" background="images/home_03_01_01.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="24" height="22"> </td>
<td width="190"><%'rs.close
sort_id=38
set rs=server.CreateObject("ADODB.Recordset")
rs.open "select top 5 id,sort_id,title,dateandtime from news where sort_id="&sort_id&" and title like '%"&title&"%' order by dateandtime desc",conn,1,1
asing=1
do while not(rs.eof)
%> </td>
</tr>
</table>
<table width="213" height="28" border="0">
<tr align="right">
<td width="10" align="right" valign="middle" > </td>
<td width="17" height="24" align="right" valign="middle" ><a href="Newsx.asp?id=<%=rs("id")%>" target="_blank"></a> <img src="images/emp_dot.gif" width="8" height="8" /></td>
<td width="172" align="left" valign="middle" > <a href="Newsx.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("title"),18)%></a></td>
</tr>
</table>
<table width="215" height="10" border="0" >
<tr>
<td height="10"><%asing=asing+1
rs.movenext
loop
%> </td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr> 展开
<tr>
<td width="215" height="183" background="images/home_03_01_01.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="24" height="22"> </td>
<td width="190"><%'rs.close
sort_id=38
set rs=server.CreateObject("ADODB.Recordset")
rs.open "select top 5 id,sort_id,title,dateandtime from news where sort_id="&sort_id&" and title like '%"&title&"%' order by dateandtime desc",conn,1,1
asing=1
do while not(rs.eof)
%> </td>
</tr>
</table>
<table width="213" height="28" border="0">
<tr align="right">
<td width="10" align="right" valign="middle" > </td>
<td width="17" height="24" align="right" valign="middle" ><a href="Newsx.asp?id=<%=rs("id")%>" target="_blank"></a> <img src="images/emp_dot.gif" width="8" height="8" /></td>
<td width="172" align="left" valign="middle" > <a href="Newsx.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("title"),18)%></a></td>
</tr>
</table>
<table width="215" height="10" border="0" >
<tr>
<td height="10"><%asing=asing+1
rs.movenext
loop
%> </td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr> 展开
2个回答
展开全部
大哥.. 你这部是js代码..
<%%> T.T 这是动态程序的代码. 不是js代码..
<%'rs.close
sort_id=38
set rs=server.CreateObject("ADODB.Recordset")
rs.open "select top 5 id,sort_id,title,dateandtime from news where sort_id="&sort_id&" and title like '%"&title&"%' order by dateandtime desc",conn,1,1
asing=1
do while not(rs.eof)
%>
从这句看应该是vb.net 吧. 我也不太懂. 不过 这个数据库查询语句我倒是明白.
查询5条新闻.. 这五条新闻包括的属性有,标识符, 排列顺序, 新闻题目, 和新闻描述...
总之.. 这不是js 代码...
<%%> T.T 这是动态程序的代码. 不是js代码..
<%'rs.close
sort_id=38
set rs=server.CreateObject("ADODB.Recordset")
rs.open "select top 5 id,sort_id,title,dateandtime from news where sort_id="&sort_id&" and title like '%"&title&"%' order by dateandtime desc",conn,1,1
asing=1
do while not(rs.eof)
%>
从这句看应该是vb.net 吧. 我也不太懂. 不过 这个数据库查询语句我倒是明白.
查询5条新闻.. 这五条新闻包括的属性有,标识符, 排列顺序, 新闻题目, 和新闻描述...
总之.. 这不是js 代码...
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询