Also sprach Robert Guildner:
I am new to JavaScript and I am building a Web page in which I want
to use a navigational/informational feature that I have seen called
bread crumbs. It looks like: home>>one level>>next level>the page
you are on Often I see it with different colors for the history and
the current page. I would appreciate any help.
Help for what? You don't need JavaScript to implement bread crumbs on your
pages. Just put something like
<a class="breadcrumb" href="index.html">Home</a> >>
<a class="breadcrumb" href="level1.html">One Level</a> >>
<a class="breadcrumb" href="level2.html">Next Level</a> >>
<span class="youarehere">This Page</span>
on every page and define colors and whatever "looks" you like in a style
sheet:
..breadcrumb {color:blue;}
..youarehere {color:red;}
If you want to study a "live" example:
www.mlynarczyk-webdesign.de
Of course it would be possible to have the above code written by JavaScript
automatically, but what if the user has JavaScript disabled? If you want to
automatically generate the bread crumbs, you should do it server side, with
PHP for example.
Greetings, Thomas