NEW TOG VERSION - even though its about 4 months old now In the head of your template you have to do this when using external files:
<script type="text/javascript">var Fldr="%folder%";</script>
If you are using the main code in the head of the template, you must put the following above the function:
var Fldr="%folder%";
This is the main code that does the string splitting and stuff...
//Breadcrumbs
function bCrumbs() {
x="/";
y=Fldr.split(x);
bC="";
for(z=1;z<y.length;z++){
x=x+y[z]+"/";
bC=bC+'/<a href="'+x+'" class=swpFt>'+y[z]+'</a>';
}
document.getElementById('swpFt').innerHTML = bC;
}
Ok, now we have the main scripts... next we must set up the html...
<div class=dr>
Current Directory: <a href="/" class=swpFt>Home</a><span id=swpFt>%folder%</span>
<script type="text/javascript">bCrumbs()</script>
</div>
Done, you now have a bread crumb trial.
You can work out what to do with the css... I cant be bothered writing out some classes to style it... if you require an example i will post that.
Note: <script type="text/javascript">bCrumbs()</script> MUST be placed just after the element that you are changing.
Note: You will notice my version of the code is smaller than what you find on the terayon, i have compressed it a fair bit.
Good Luck