Question about my navigation include file

This is a discussion on "Question about my navigation include file" within the Classic ASP section. This forum, and the thread "Question about my navigation include file are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old May 12th, 2005, 09:40
New Member
Join Date: May 2005
Location: Bromsgrove, Worcestershire
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question about my navigation include file

Hello everybody,

I'm new to the forum and fairly new to ASP so please be gentle! Basically, I have a question about one of my include files:

I have put the navigation inside an include, but I want to be able to show the user that they are on a particular page by having that particular menu item highlighted, using CSS. Obviously this is not easily done by somebody with my very little ASP knowledge. Which leads to my question...

Does anybody know what ASP I have to put inside my include file in order to highlight the particular menu items?

Any help at all would be greatly appreciated.

Thanks in advance,
James


FYI, my include file looks like this:

<div id="navigation">
<ul>[*]Homepage[*]Beginnings[*]Qualifications and Awards[*]Musical Repertoire[*]Teaching[/list]</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old May 12th, 2005, 09:46
New Member
Join Date: May 2005
Location: Bromsgrove, Worcestershire
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
P.S.: Obviously there are href's inside the[*]'s - forgot to add those in.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old May 13th, 2005, 09:56
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
well this is how ive done it in the past:

Code: Select all
<%
Dim PageName
PageName = "About Us"
%>
<html>
 <body>
  
  <h2>About Us</h2>
 </body>
</html>
...then, within my navigation include, i have this:

Code: Select all
[*]<%If PageName="Home" Then%><%End If%>Home<%If PageName="Home" Then%><%End If%>[*]<%If PageName="About Us" Then%><%End If%>About Us<%If PageName="About Us" Then%><%End If%>
So basically the navigation include looks for the variable called page name and makes the link bold if the correct value is found. People will tell you that the include is processed before the variable, so this shouldnt work, but it does, go figure!

Hope that helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old May 17th, 2005, 14:36
New Member
Join Date: May 2005
Location: Bromsgrove, Worcestershire
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot, Smokie! Works like a charm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
question, navigation, include, file

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini include path question bonnit PHP Forum 0 May 10th, 2008 14:43
Syntax to include a file as a variable??? WebNinja PHP Forum 7 Feb 5th, 2008 11:00
Newbie Navigation Question neel Web Page Design 5 Jan 1st, 2007 22:39
Question about navigation buttons Lisa81 Web Page Design 8 Sep 3rd, 2006 06:08
Session include file manzil PHP Forum 1 Aug 6th, 2006 16:34


All times are GMT. The time now is 14:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42