E' il mio 300esimo post...![]()
devi solo decommentare la prima riga e commentare la seconda.
Cmq provalo intanto così.
Ciauzcodice:<html> <body> <script> //url = location.href; url = "http://www.sito.it/level1/level2/level3/"; base = "index.html"; sito = "http://www.sito.it/" for (i=0; i<3; i++) { url = url.substr(url.indexOf("/")+1) } path = ""; nav = ""; while (url.indexOf("/") > 0) { level = url.substring(0,url.indexOf("/")); path = path + url.substring(0,url.indexOf("/")+1); url = url.substring(url.indexOf("/")+1,url.length); nav = nav + ''+ level +' : '; } document.write(nav); </script> </body> </html>
![]()

Rispondi quotando