...

View Full Version : Include strange menu



simeon
01-05-2007, 10:05 PM
Hello guys,i need some help.i wanna include a menu,which to change the style of the link by clicking on a link from it.here is the link (http://tabletennis-bg.org) to that menu. How can i do that,i don't have an idea.how can i make it to "understand" that you're on a page of the link and to change its style.i'll be gratefull if you give me an example.thank you in advance!
Sorry for my bad english

haveacigar
01-06-2007, 03:43 AM
Ok, so you want it to highlight when you are on that page?

what you do is put a variable at the top of each page eg



<? $page = "homepage"; ?>


Then you have a navigatation page that is included with include (if you see what i mean)

anyway in your navigation page all you have to do is use switch

eg



<?
switch($page)
case "homepage":
echo ' insert your code here';
break;
case "pictures":
echo ' insert code here ';
break;
default: echo ' what you want the default to be';
?>


make sence?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum