homepage Welcome to WebmasterWorld Guest from 54.226.235.222
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP INCLUDE navigation
how to change background image and selected link with include navigation
andy106




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

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!

 

coopster




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved