SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot djsawyer's Avatar
    Join Date
    Sep 2000
    Location
    East Sussex, England
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP help on dynamic nav bar

    I am fairly to the world of ASP and need some help or a pointer to a script, I'm building a site that consists of 2 main sections, client & candidates, I want to keep the look of the site consistent throughout except the nav bar on the left. I want a persistant/dynamic nav bar that will collapse/expand depending on page and whether in client or candidate section

    ANY IDEAS?
    Many thanks
    Dom

  2. #2
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am fairly sure this is not th emost efficient way to do this, but since no one else has replied..

    You can make a check variable on each page and based on that variable your script can display the correct menu.

    To be placed on the page itself...

    dim checkpage
    checkpage = 1

    //Make 1 file with this code for your menus and use a Server Side Include

    if checkpage = 1 then
    display menu 1
    end if

    if checkpage = 2 then
    display menu 2
    end if


    etc..


    Maybe there is another way, but if your site is fairly small then this should be efficient enough.


    Good Luck

  3. #3
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why use ASP? Are you pulling the menus from a database? Otherwise, I would suggest using a bit of SSI/JavaScript/DHTML to handle this problem.

    Hope this helps. Any questions? I'm just a click away.

    'Till next time..
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  4. #4
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com


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
  •