Thread: php tab select
View Single Post
Old 07-06-2011, 01:24 PM   #1 (permalink)
KingOfTheSouth
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default php tab select

Hey everyone, I have come to something I am working on for my website template. I have a top navigation that are tabs and when you click a tab to the next page it pops out the next tab as the selected tab. Very basic with HTML this is my sample code for it.

Code:
      <ul>
        <!-- **** INSERT NAVIGATION ITEMS HERE (use id="selected" to identify the page you're on **** -->
        <li><a id="selected" href="index.php">home</a></li>
        <li><a href="about.php">about</a></li>
        <li><a href="portfolio.php">portfolio</a></li>
        <li><a href="services.php">services</a></li>
        <li><a href="contact.php">contact</a></li>
        <li><a target="_blank" href="/blog">blog</a></li>
      </ul>
Quote:
Note: The files do have a .php file extension but I have very little php in the files the site in mostly HTML.
So now that I explained that part I am looking for a solution to do it in PHP or JavaScript if possible. If anyone can help me with a easy solution it would be much appreciated.
KingOfTheSouth is offline  
Reply With Quote