Highlighting Current Page Text on Nav Bar
-
What is the best way to automatically highlight (make bold) the current page that a user is on. I have a navigation bar that goes down the left side of the screen with links. If the user is on page three, I would like the page to look like the following: Link One Link Two Link Three Link Four I would like to do this using ASP Code but have been unable to find any scripts that meet my needs. Chris LaQuerre Internet Technologies Consultant
-
What is the best way to automatically highlight (make bold) the current page that a user is on. I have a navigation bar that goes down the left side of the screen with links. If the user is on page three, I would like the page to look like the following: Link One Link Two Link Three Link Four I would like to do this using ASP Code but have been unable to find any scripts that meet my needs. Chris LaQuerre Internet Technologies Consultant
Hi Chris.. basically what you need to do is send a value that informs the seccion you are in and create a validation in the following pages that recieves this value. I made an example using the same page as the reciving target. Im sending the variable "seccion" that contains the values 1 through 4. The page verifies if the value recived is the same as itself, and preforms to things afterward: either converts the word into a link or i simply keeps in bold. Here's the code...
* **<% if request.QueryString("seccion") <> "1" then %>[?seccion=1" target=_self><%end if%>Link One<% if request.QueryString("seccion") <> "1" then %>](<%= request.ServerVariables\()<%end if%>** * **<% if request.QueryString("seccion") <> "2" then %>[?seccion=2" target=_self><%end if%> Link Two <% if request.QueryString("seccion") <> "2" then %>](<%= request.ServerVariables\()<%end if%>** * **<% if request.QueryString("seccion") <> "3" then %>[?seccion=3" target=_self><%end if%> Link Three <% if request.QueryString("seccion") <> "3" then %>](<%= request.ServerVariables\()<%end if%>** * **<% if request.QueryString("seccion") <> "4" then %>[?seccion=4" target=_self><%end if%> Link Four <% if request.QueryString("seccion") <> "4" then %>](<%= request.ServerVariables\()<%end if%>**
Hope it works.. luck, Jon GET TO KNOW ME