请教一个问题,ASP输出记录问题。
有个图片类别的表:piccat 里面两个字段:piccat_id和piccat_name
<%
if request.querystring("piccat_id")<>"" then
id=request.querystring("piccat_id")
set rspic=server.CreateObject("adodb.recordset")
sql="select * from piccat order by piccat_id"
rspic.open sql,conn,1,1
do while not rspic.eof and not rspic.bof
%>
<li>
<%
if piccat_id=id then
%>
<a class="current" href="picshow.asp?piccat_id=<%=rspic("piccat_id")%>"><%=rspic("piccat_name")%></a>
<%else%>
<a href="picshow.asp?piccat_id=<%=rspic("piccat_id")%>"><%=rspic("piccat_name")%></a>
<%
end if
%>
</li>
<%
rspic.movenext
loop
rspic.close
%>
<%else
set rspic1=server.CreateObject("adodb.recordset")
sql="select * from piccat order by piccat_id"
rspic1.open sql,conn,1,1
do while not rspic1.eof and not rspic1.bof
%>
<li><a href="picshow.asp?piccat_id=<%=rspic1("piccat_id")%>"><%=rspic1("piccat_name")%></a>
</li>
<%
rspic1.movenext
loop
rspic1.close
end if
%>
页面是:http://www.betop.com.cn/picshow.asp?piccat_id=2
我想实现当在Fashion Beds页面的时候,Fashion Beds那个LI的颜色是鼠标放上去的颜色。。
class="current"是实现颜色效果的CSS。可是用上面的代码,看到的效果还是这个样子没有变,请教是怎么回事????急盼~~~