请教一个asp超级连接的问题

来源:百度知道 编辑:UC知道 时间:2024/06/18 12:16:59
我的代码如下,我现在是调用的一个菜单导航条,我希望在点击其中一个导航条其中一个栏目后,改栏目在右面框架中打开页面而点击后的栏目一直是红色,也就是在右面框架中打开的什么页面该对应的导航条就一直是红色的时候<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
set rs=server.CreateObject("adodb.recordset")
rs.open"select top 800 * from [P_title] where p_lanmu=21 order by p_id desc",conn,1,1
do while not rs.eof
%>
<tr>
<td height="24"><font color="#FFFFFF">
<%

response.Write("<a href=article/art.asp?id="&rs("p_id")&" target=xia><font color=#ffffff>")

if len(rs("P_name"))>30 then
response.Write(""&left(trim(rs("P_name")),30)&"..")
else
response.Write(""&trim(rs("P_n

response.Write("<a href=article/art.asp?id="&rs("p_id")&" target=xia><font color=#ffffff>")

这行改一下:
strColor="#fff"
if request("id")= rs("p_id") then strColor="#f00"

response.Write("<a href=article/art.asp?id="&rs("p_id")&" target=xia><font color="&strColor&">")

上次没注意,弄错了

response.Write("<a href=article/art.asp?id="&rs("p_id")&" target=xia><font color=#ffffff>")