I usually design my menus in photoshop, cut them up and then write the code. I then take the code and place it in a file called menu.php
My menus are usually simple, neat and offer the website basic navigations such as HOME, Contact Us, About Us, etc etc.
Now, I am looking to make my menus a little more dynamic in terms of when selected, the image displays differently.
I would like to use the same menu throughout the site for simplicity’s sake. However, if I click on “HOME”, the home image would be the highlighted image. If I click on “Contact Us” page, the contact us page would load, all the navigation buttons would remain unhighlighted, but the “Contact Us’ image would be highlighted.
If I have lost anyone, I would try to explain it easier:
I have a menu/navigation with 4 tabs.
Tab 1: Home – index.php
Tab 2: Contact Us – contact.php
Tab 3: About Us – about.php
Tab 4: Services – services.php
Now, at default, the home page is index.php (obviously). So my menu, which is pulled from the command line: <?php include (“menu.php”); ?>.
My menu would display all 4 tabs, but since I am on the Home page, a different image would load for the HOME tab. Similarly if I go to Contact Us tab, the contact.php page would load and the menu would display, and only the Contact Us tab would be highlighted.
Anyone have any ideas how to accomplish this task but ONLY HAVE ONE MENU script, not an individual one for each page?