[Javascript] java breadcrumbs
Hassan Schroeder
hassan at webtuitive.com
Tue Oct 1 14:42:37 CDT 2002
Harry Love wrote:
> The need to have a definable starting point for the breadcrumbs is on my
> to-do list, but unfortunately I don't have time to work on it right now.
> In the meantime, I can give you some hints for customizing it yourself.
>
> The first part of the script gets the URL string from the browser and
> splits it into segments using the backslash as a delimiter. Those
> segments are then stored in an array. The rest of the script is all
> about looping through the array segments and writing those segments to
> the page.
From a very brief look at the code, wouldn't changing the '0' in
the line below:
for(counter=0 ; counter < linkArray.length ; counter++)
:: to a positive integer less than linkarray.length take care of it?
You could make it flexible with something like:
var startpoint = 2;
for(counter=startpoint ; counter < linkArray.length ; counter++)
HTH!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
-- creating dynamic Web sites and applications since 1994 --
More information about the Javascript
mailing list