Re: Please Help - getting a hightlight depending on selected page

From: Date: Wed, 22 Aug 2001 18:30:47 +0000
Subject: Re: Please Help - getting a hightlight depending on selected page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63950@lists.php.net to get a copy of this message
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 <20010822175015.63668.qmail@pb1.pair.com>, martin@mixermanic.co.uk (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: jiblet@visi.com hPage: http://www.visi.com/~jiblet

« previous php.general (#63950) next »