Javascript? ASP?

Discussion in 'Web Design & Coding' started by digitalmelon, Sep 28, 2002.

  1. digitalmelon

    digitalmelon Guest

    I'd like to create a "You are Here" idicator at the top of my web page that tells the user exactly where they are in the navigation tree of the site. For example it might look like this:

    You Are Here>>> Home/About Us/Contact/contact.html

    The user could click on Home, About Us or Contact to move back through the navigation structure. I see this done on a lot of sites. Is it done with Javascript? ASP?

    Any help would be appreciated!

  2. Liger ZERO

    Liger ZERO Guest

    I can't help you but when I need help with Javascript I go Here.
  3. scriptasylum

    scriptasylum Moderator

    Des Moines,IA
    You could try something like:

    <script language="javascript">

    This will write out the full URL, so it will look something like:

    You'll have to paste the section above exactly where you want the text to appear.

    You could the add some other code to cut out the first part so you are left with just the path and the page.
  4. digitalmelon

    digitalmelon Guest

    the problem with this solution is that the whole path is a url which takes me to the same page I am on. I would like to print the full path from the home page and have each one a link to that page.

    Here is an example I found from another site:

    Top -> PC Hardware -> Motherboards -> Socket A ->

    Where each of these is a link back. Am I making any sense? :)
  5. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Its probably hard coded into each page
  6. Mooz

    Mooz Moozically Con~foozed

    The method you are after is called breadcrumb navigation and it is quite common, its easiest to achieve in ASP by using an Include file to write that header in ..... if you want an example mail me .

    MoOz Ownz OO
  7. madmatt

    madmatt Bow Down to the King Political User

    New York
    I would think doing something like that would be easiest accomplished using PHP and setting a global var, and when the page changes, update that var.