"YouTube-style" Tabbed Menu w/ Sublinks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eufonik
    New Member
    • Oct 2006
    • 3

    "YouTube-style" Tabbed Menu w/ Sublinks?

    Hey TheScripts,

    I am new to the forum. Thanks for taking the time to read my first post!

    Anyway, I'm pretty fluent in XHTML and CSS. However, when it comes to PHP, I'm a n00b for sure.

    I'm working on a site that needs a tabbed interface with sublinks (similar to YouTube). See below:



    I think the code I'm looking for would be something like,

    if currentPage = blah, then include xxx.php. Seems like a simple conditional include?

    Is this the correct way to implement this, or is there a simpler way? Basically, the system needs to be smart enough to know that "sublink X means stay on main tab X." Kind of a Parent --> Child deal...

    Thanks in advance...
  • Eufonik
    New Member
    • Oct 2006
    • 3

    #2
    Anybody have an idea?

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      There are solutions available that are almost entirely made up of HTML and CSS. Have a look at the site of CSS guru Stuart Nicholls. It will show you dozens of examples for menus. Look at Stu Nicholls Menu demos

      Ronald :cool:

      Comment

      • darkdirk1
        New Member
        • Oct 2006
        • 50

        #4

        The new norm....

        gee no php required.
        If you are dying to use php for some reason within your interface logic - drive the links with GET vars and use a switch case to choose the include statement.
        That's the standard.

        Comment

        • Eufonik
          New Member
          • Oct 2006
          • 3

          #5
          Thanks, guys. I've looked at the CSS Play site before and AListApart.com' s Sliding Doors. However, I'm looking for something that is a little more static and that will alow me to designate which tab is active.

          I'll do some research on PHP's GET function.

          Comment

          Working...