Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Include strange menu

    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

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    Code:
    <? $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
    Code:
    <?
       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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •