Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Dropdown menu problem

  • 07-07-2010 8:59am
    #1
    Registered Users, Registered Users 2 Posts: 787 ✭✭✭


    Folks,

    I am currently trying to design a website which will have dropdown navigation menu. The page will have 3 different frames (nav, side nav and content). My problem is that the dropdown is in the nav-frame and when I hover over the menu it does indeed dropdown but is then hidden behind the content-frame.

    My question is, is there anyway to make it come in front of the content-frame (so to speak).

    Any help appreciated!


Comments

  • Posts: 0 [Deleted User]


    Is there a good reason for using frames? Frames are not used much anymore - they are problematic as you have discovered. My advice would be to change your structure and use divs instead of frames for layout.


  • Registered Users, Registered Users 2 Posts: 787 ✭✭✭Roaster


    Is there a good reason for using frames? Frames are not used much anymore - they are problematic as you have discovered. My advice would be to change your structure and use divs instead of frames for layout.

    We use divs/css mostly but the boss wants the Intranet redesigned and to use frames so when a change is made to the nav we dont have to change every page. Is there another way around this?


  • Posts: 0 [Deleted User]


    Roaster wrote: »
    We use divs/css mostly but the boss wants the Intranet redesigned and to use frames so when a change is made to the nav we dont have to change every page. Is there another way around this?

    Absolutely - the easiest thing to do would be server side includes (e.g the include() function in PHP). You would create one header file including banner and nav menu, and another for the footer. You then just include the header file at the top of every content page and the footer file at the bottom. This way you only need to edit the header file to propagate the nav change throughout the entire site.


  • Registered Users, Registered Users 2 Posts: 787 ✭✭✭Roaster


    Absolutely - the easiest thing to do would be server side includes (e.g the include() function in PHP). You would create one header file including banner and nav menu, and another for the footer. You then just include the header file at the top of every content page and the footer file at the bottom. This way you only need to edit the header file to propagate the nav change throughout the entire site.

    Cheers SBS, much appreciated but when it comes to PHP I haven't a clue, would you mind sending me a link as an example. Thanks.


  • Posts: 0 [Deleted User]


    Roaster wrote: »
    Cheers SBS, much appreciated but when it comes to PHP I haven't a clue, would you mind sending me a link as an example. Thanks.

    Sure - here you go:
    http://www.tizag.com/phpT/include.php


  • Advertisement
  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    I'm VERY surprised that that php tutorial advises keeping the html and body tags in the menu.php!!!!

    The logical "component-ised" approach would be
    <html>
    <head>
    <!-- HEAD STUFF HERE -->
    </head>
    <body>
    <?php include("includes/menu.php"); ?>
    <!-- ON-PAGE STUFF HERE -->
    </body>
    </html>
    


  • Posts: 0 [Deleted User]


    Good point. I'm not recommending that tut as best-in-class - it was simply the first result in my google search :p


Advertisement