Ok, this code states that the link to the current page is hilighted. I still want it to be hilighted, but I don't want the cell to be blue. I want the text to be red.
Here is the first part:
<%
function strColorCell (strCellURL)
'Purpose: For Navbars -- bolds the cell background if it contains a link to the current page.
'Arguments:
'strCellURL -- a unique portion of the URL to which this cell links.
'Returns: an HTML string which either colors the cell's background, or leaves it alone.
dim strPresentURL
strPresentURL=Request.ServerVariables("PATH_INFO"
if instr (1,strPresentURL,strCellURL,1)>0 then
strColorCell=" bgcolor=#999CC"
else
strColorCell=""
end if
end function
%>
And here is where it's applied:
<td <%=strColorCell("/hosting/default.asp"
%>>
<font size=1 face="tahoma,arial"><b>
<a href="/hosting/" class=textBlack onMouseOver="this.className='textRed'" onMouseOut="this.className='textBlack'">Website Hosting</a>
</b></font>
</td>
Any suggestions for me? I tried strColorText...didn't work.
Thanks!
Here is the first part:
<%
function strColorCell (strCellURL)
'Purpose: For Navbars -- bolds the cell background if it contains a link to the current page.
'Arguments:
'strCellURL -- a unique portion of the URL to which this cell links.
'Returns: an HTML string which either colors the cell's background, or leaves it alone.
dim strPresentURL
strPresentURL=Request.ServerVariables("PATH_INFO"
if instr (1,strPresentURL,strCellURL,1)>0 then
strColorCell=" bgcolor=#999CC"
else
strColorCell=""
end if
end function
%>
And here is where it's applied:
<td <%=strColorCell("/hosting/default.asp"
<font size=1 face="tahoma,arial"><b>
<a href="/hosting/" class=textBlack onMouseOver="this.className='textRed'" onMouseOut="this.className='textBlack'">Website Hosting</a>
</b></font>
</td>
Any suggestions for me? I tried strColorText...didn't work.
Thanks!