![]() ![]() |
| bcgann |
Aug 24 2009, 10:26 AM
Post
#1
|
|
Group: Members Posts: 1 Joined: 24-August 09 Member No.: 9,545 |
Hello, I am trying to figure out how to make my menu highlight what page it is currently on. I use php include and it is a header with the menu in it. I need it to be able to tell what page it's on and highlight the correct link.
All the links are images. Here is the code I use and I need to modify. CODE <table id="Table_01" width="1129" height="284" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="15"> <img src="images/header_01.png" width="1129" height="228" alt=""></td> </tr> <tr> <td><img src="images/header_02.png" width="60" height="56" alt=""></td> <td><a href="index.php"><img src="images/header_03.png" width="82" height="56" alt="Home" border="0" onmouseover="this.src='images/header1_03.png'" onmouseout="this.src='images/header_03.png'" onclick="this.src='images/header1_03.png'"></a></td> <td><img src="images/header_04.png" width="12" height="56" alt=""></td> <td><a href="http://www.crownmotorz.com/blog"><img src="images/header_05.png" width="82" height="56" alt="Blog" border="0" onmouseover="this.src='images/header1_05.png'" onmouseout="this.src='images/header_05.png'" onclick="this.src='images/header1_05.png'"></a></td> <td><img src="images/header_06.png" width="10" height="56" alt=""></td> <td><a href="http://crownmotorz.com/blog/eventsrides"><img src="images/header_07.png" width="180" height="56" alt="Events/Rides" border="0" onmouseover="this.src='images/header1_07.png'" onmouseout="this.src='images/header_07.png'" onclick="this.src='images/header1_07.png'"></a></td> <td><img src="images/header_08.png" width="10" height="56" alt=""></td> <td><a href="inTheShop.php"><img src="images/header_09.png" width="161" height="56" alt="In The Shop" border="0" onmouseover="this.src='images/header1_09.png'" onmouseout="this.src='images/header_09.png'" onclick="this.src='images/header1_09.png'"></a></td> <td><img src="images/header_10.png" width="10" height="56" alt=""></td> <td><a href="store.php"><img src="images/header_11.png" width="95" height="56" alt="Store" border="0" onmouseover="this.src='images/header1_11.png'" onmouseout="this.src='images/header_11.png'" onclick="this.src='images/header1_11.png'"></a></td> <td><img src="images/header_12.png" width="11" height="56" alt=""></td> <td><a href="whoIsCrown.php"><img src="images/header_13.png" width="210" height="56" alt="Who Is Crown" border="0" onmouseover="this.src='images/header1_13.png'" onmouseout="this.src='images/header_13.png'" onclick="this.src='images/header1_13.png'"></a></td> <td><img src="images/header_14.png" width="10" height="56" alt=""></td> <td><a href="contact.php"><img src="images/header_15.png" width="133" height="56" alt="Contact" border="0" onmouseover="this.src='images/header1_15.png'" onmouseout="this.src='images/header_15.png'" onclick="this.src='images/header1_15.png'"></a></td> <td><img src="images/header_16.png" width="63" height="56" alt=""></td> </tr> </table> |
| Frederiek |
Aug 24 2009, 10:37 AM
Post
#2
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,541 Joined: 23-August 06 From: Europe Member No.: 9 |
See these articles:
http://www.alistapart.com/articles/keepingcurrent http://trevordavis.net/blog/tutorial/set-a-body-id/ -------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| pandy |
Aug 24 2009, 11:01 AM
Post
#3
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,726 Joined: 9-August 06 Member No.: 6 |
I use php include Then you could adapt this. It's better if the current "link" isn't a link at all. http://lists.evolt.org/harvest/detail.cgi?id=3803 -------------------- |
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 01:04 AM |