Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Path_Info to style HTML Menus

Status
Not open for further replies.

willbro9

Programmer
Jul 6, 2007
2
US
I am trying to simplify a website that someone else wrote.
There is a special CSS class (selected) for the menu of the page that you are on. The original designer created a different menu file for each subdirectory (so, if something changes, you have to change 5 files).

So I created a single file that I could include in every file... (oh, maybe there's a require type statement...)

My GetThisPath function is working - I've already test with a simple page.

My problem is how to write the conditional code without have to stuff all five HTML menu files into the case (or if) statements.

My sense of the problem is that the server is not re-calculating the path with each new page.
 
APOLOGY... Bad post-er. I forgot to include my functions.asp file in all but one of my test pages. Sorry. Closed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top