Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP INCLUDE navigation

how to change background image and selected link with include navigation



5:53 am on Oct 12, 2010 (gmt 0)

5+ Year Member

Hi everyone! Thanks for reading my post.

I have 2 questions,

first I have a PHP site where it reads the pages from a folder and shows it in a php frame, for example the contact us page with the file name of contact.php will be shown as [<DOMAIN>?page=contact....] and when you go from one line to another the contact changes to the next file name (minus extension).

first question is: my navigation which is an include file has css hover effects and when you click on a link that link should have a different back ground color (see how web development is purple and the rest Grey) but how can I get it to do that?

2nd question is how can I add a breadcrumb? all pages comes up as index.php (Home), I am not sure how I can differentiate from the pages.

Thanks for all your help!


8:08 pm on Dec 15, 2010 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

You can change your link display characteristics by employing cascading style sheets for the anchor pseudonyms :link, :visited, :hover and :active.

Breadcrumb trails are easiest by parsing the REQUEST_URI which is a $_SERVER superglobal array index.

Featured Threads

Hot Threads This Week

Hot Threads This Month