Forum Moderators: phranque
It will say something like:
You are here: Home -> Widgets -> Widget care -> Widget Food
or Home -> Widjetts -> Widjett care -> Widjett Food
for the different sections. How do I do this? It would be neat to have at the top of a page. As I already have 300+ pages I would hate to go through and change them individually... I wonder how people set their sites up like this.
Unfortunately (unless you're using templates) you're going to have to edit each of your 300 pages :-(
Although you could look on the bright side and see it as an opportunity to move to templates before your site reaches 600 pages! Once you've changed to templates, all your future updates will become much easier as well...
Hi go to your notepad or something copy paste this in there and then save it .html and then view it and tell me if this what your looking for m8
function breadcrumbs(){
sURL = new String;
bits = new Object;
var x = 0;
var stop = 0;
sURL = location.href;
sURL = sURL.slice(8,sURL.length);
chunkStart = sURL.indexOf("/");
sURL = sURL.slice(chunkStart+1,sURL.length)
while(!stop){
chunkStart = sURL.indexOf("/");
if (chunkStart!= -1){
bits[x] = sURL.slice(0,chunkStart)
sURL = sURL.slice(chunkStart+1,sURL.length);
}else{
stop = 1;
}
x++;
}
for(var i in bits){
output += "<a href=\"";
for(y=1;y<x-i;y++){
output += "../";
}
output += bits[i] + "/\">" + bits[i] + "</a> > ";
}
document.write(output + document.title);
then place this code into a blank text editor
<html>
<head>
<script language="JavaScript" src="crumb.js"></script>
<script language="JavaScript">
<!--
breadcrumbs();
-->
</script>
<a href="put links here">home</a> /
<a href="put links here">js</a> /
<a href="put links here">breadcrumbs</a>
and save it as anything you want called with the extension .html
good luck i hope that help and that is what your looking for