Il link è questo:

ht*tp://www.sito.net/nomecartella/page.php

Il codice JS è questo:

Codice PHP:

function breadCrumbs($home_directory$divider1$divider2$cStyle$tStyle$dStyle$new_line) { 

$location window.location.toString(); 
$subString $location.substr($location.indexOf($home_directory) + $home_directory.length 1).split("/"); 

document.write("<a href=\"" getLoc($subString.length 1)+ "\" class=\"" $cStyle "\">Home</a> " "<span class=\"" $dStyle "\">" $divider1 "</span> "); 

$a = ($location.indexOf() == -1) ? 2
for (
0$subString.length $ai++) { 
$subString[i] = makeCaps(unescape($subString[i])); 

document.write("<a href=\"" getLoc($subString.length 2) + "\" class=\"" $cStyle "\">" $subString[i] + "</a> " "<span class=\"" $dStyle "\">" $divider2 "</span> "); 


if (
$new_line == 1) { 
document.write("
"
); 

document.write("<span class=\"" $tStyle "\">" document.title "</span>"); 
}
function 
makeCaps($a) { 
$sub_dir_name $a.split(" "); 

for (
0$sub_dir_name.lengthl++) { 
$sub_dir_name[l] = $sub_dir_name[l].toUpperCase().slice(01) + $sub_dir_name[l].slice(1); 

return 
$sub_dir_name.join(" "); 
}
function 
getLoc($num) { 
var 
$path ""
if (
$num 0) { 
for (
$count 0$count $num$count++) { 
$path $path "../"


return 
$path;

Cio che mi appare è:

Home >> NomeCartella > TitledellaPagina

Io invece vorrei che fosse (il link lo trovate sopra):

Home >> Page.php > TitolodellaPagina

Cioè, invece che il Nome della Cartella, il nome della pagina, preferibilmente senza estesione .php, come potrei fare?