Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Highlighting Current Page Text on Nav Bar

Highlighting Current Page Text on Nav Bar

Scheduled Pinned Locked Moved Web Development
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris J LaQuerre
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • C Chris J LaQuerre

      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

      J Offline
      J Offline
      Jonavis
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups