Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How can I show the position on navigation menu where you are right now?

    When you go to other pages on a website, its navigation menu shows where you're right now.

    I don't know how to make it, so please help me out!

    Thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    clo...
    do youuu mean something just a like® this???

    Code:
    <script LANGUAGE="JavaScript">
    <!-- Begin
    //author: Jake Fairhead
    var path  = "";
    var href  = window.location.href;
    var start = href.substring(0, href.indexOf('//') + 2);
    var pos   = href.indexOf('//');
    href      = href.substring(pos + 2, href.length);
    pos       = href.indexOf('/');
    path = start + "";
    
    document.write(start);
    while (pos != -1) {
    var name = href.substring(0, pos);
    path += name + "/";
    document.write("<a href=\"" + path + "\">" + name + "</a>");
    document.write(">");
    href = href.substring(pos + 1, href.length);
    pos = href.indexOf('/');
    }
    
    // remove anchors
    if (href.indexOf('#') != -1) {
    href = href.substring(0, href.indexOf('#'));
    }
    
    // remove query string
    if (href.indexOf('?') != -1) {
    href = href.substring(0, href.indexOf('?'));
    }
    document.write("<a href=\"" + path + href + "\">" + href + "</a>");
    
    // End -->
    </script>
    just a goodluck® n' welcome to the forum...:O)))

  • #3
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thanks.

    I'm going to try your code as soon as I come home.

    ClonedAlian


  •  

    Posting Permissions

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