分类问题
<div id="slidingBlock"><script language="javascript">
function switchmodTag(modtag,modcontent,modk) {
for(i=1; i <4; i++) {
if (i==modk) {
document.getElementById(modtag+i).className="menuOn";document.getElementById(modcontent+i).className="slidingList";}
else {
document.getElementById(modtag+i).className="menuNo";document.getElementById(modcontent+i).className="slidingList_none";}
}
}
</script>
<h4 class="menuOn" id="mod1" onmouseover="switchmodTag('mod','slidingList','1');this.blur();">
公司新闻</h4>
<h4 class="menuNo" id="mod2" onmouseover="switchmodTag('mod','slidingList','2');this.blur();">
IT行业</h4>
<div class="slidingList" id="slidingList1">
<% Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from news_class"
rs.open sql,conn,1,1
while not rs.eof
%>
<%set rs1= Server.CreateObject("adodb.recordset")
sqll ="select top 6 * from news "
rs1.open sqll,conn,1,1
while not rs1.eof
%><ul>
<li class="one"><a href="new.asp?id=1"><%=left(trim(rs1("title")),18)%></a></li>
</ul>
</div>
<div class="slidingList_none" id="slidingList2">
<ul>
<li class="two"><a href="new.asp?id=2"><%=left(Trim(rs1("title")),18)%></a></li>
</ul>
</div>
<%
rs1.movenext
wend
rs1.close
set rs1=nothing
%>
<%
rs.movenext
wend
rs.close
set rs=nothing
%>
</div>
</div>
这个代码分类没有分成功,这里少一个条件,在SQL 里,我加了条件"where newclass='"&rs("id")&"' order by id desc"
后就会出错
谁帮我查下错误