Results 1 to 4 of 4

Thread: Changing css navigation menu

  1. #1
    Join Date
    Dec 2005
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Changing css navigation menu

    Hiya,
    I have written a navigation menu for an intranet using unordered lists and positioned and formatted using and an external referenced css file. Good so far!

    However, there will be several hundred pages this will get used on.
    At some point in the future the navigation may/will change or extra tabs might get added, meaning I will have to add more entries to the html on each page as new list items. Not good!

    Is there a way to reference external lists.

    I dont really want to use any type of frame or javascript menu.
    Please help.
    Thanks
    Mark

  2. #2
    Join Date
    Dec 2005
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Hiya all,
    I've come up with a solution that might help others.

    By using an .inc reference I can put all the menu items in one .inc file (I'm using an ASP page). So when I need to change any menu item I simply do it in the .inc file.

    For example
    my nav.inc file contains
    Code:
    <div id="tabs">
    <ul>
    <li id="current"><a href="Home.html"><span>Home</span></a></li>
    <li><a href="Library.html"><span>Library</span></a></li>
    <li><a href="Services.html"><span>Directorates</span></a></li>
    <li><a href="Support.html"><span>Support</span></a></li>
    <li><a href="News.html"><span>News</span></a></li>
    <li><a href="About.html"><span>About</span></a></li>
    <li><a href="About.html"><span>Help</span></a></li>
    </ul>
    <div id="topright"> 
    <a href="accessability.html"><span>Accessibility</span></a>
    <a href="search.html"><span>Search</span></a> 
    </div>
    </div>
    My page contains
    Code:
    <!--#include file="nav.INC"-->
    I'm sure the masters may see down sides to this but Hey it works for me.
    Cheers
    Mark

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's the only way to do it, really
    However, it should be noted that the above code uses server-side includes, and will not work if your server does not have them installed and enabled.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Will Search Engines have issues with link crawling in this case?

Bookmarks

Posting Permissions

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