Is the menu part of each page?  Or is it a separate file/script that 
gets included in each page? Or is the navigation in a separate frame?

If the menu is hard-coded into each page, then there's no reason to use 
PHP, because you have to modify each page ANYWAY, so you might as well 
just set each page to what it needs to be.

The only way you are going to be able to accomplish this with 
significantly less work than that is if you store your image URLs and 
menu links in a database.  In that case as you printed out the links, 
you would check each one to see if $PHP_SELF was equal to the link.

Ultimately there are so many ways that you could be doing this that 
there is no simple answer.  Post your menu code, and tell us how it gets 
included in your page and then we can help... 

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Martin Hughes) wrote:

> Hi can anyone help me please!?
> 
> I have a page that has a navigation table on the left with various links:
> 
> Information
> Software
> Cars
> Dishwashers
> Paper
> Contact
> etc...
> 
> (not the real links ;))
> 
> and I want the cell of the section I am in to be highlighted (ie if I am in
> "Cars" I want the "Cars" link to have a red background). I have set it up so
> that in CSS the id "sel" is a red b/g.
> 
> How do I set the id of a certain cell to "sel" taking it from the url
> (index.php?menu=cars as a very bad example of php coding :)).
> 
> Cheers
> 
> Martin
> 
>

-- 
__________________________________
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu

wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to