<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018075" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018075</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/altering-javascript-breadcrumb-nav#comment-1106099</link>
    <description> &lt;p&gt;Hi Detox and Howard Stern.  &lt;/p&gt;
&lt;p&gt;It worked perfectly - thank you very much.  &lt;/p&gt;
&lt;p&gt;However, I&#039;ve now discovered with more experimenting (which is ongoing as I write!) that this script does not remove the underscores in directory names.  So if I have a directory called &quot;member_login&quot; it appears with the underscore in the breadcrumbs.  Is there an easy way to remove this or to enable me to have the script re-name directories?&lt;/p&gt;
&lt;p&gt;I have sourced another script which allows me to re-name directories and is apparently more compatible with older browers, however, it seems to include the actual filename of the document (eg. &#039;template.htm&#039;) in the breadcrumb with a hyperlink to itself, followed by the HTML title of the same document with no hyperlink (as it should be).  So in the following example &#039;foo.htm&#039; and &#039;members&#039; corner&#039; are in fact the same document:&lt;/p&gt;
&lt;p&gt;home &amp;gt; This is a test &amp;gt; foo.htm &amp;gt; members&#039; corner &lt;/p&gt;
&lt;p&gt;I&#039;ll paste this script below to see if anyone has any tips for fixing it.  (Oh - and how do I remove the organisation name from the title in this script as well, just in case it turns out to be usable!).&lt;/p&gt;
&lt;p&gt;Thanks for your help - it is very much appreciated!&lt;/p&gt;
&lt;p&gt;Bug&lt;/p&gt;
&lt;p&gt;var dList = new Array();&lt;br /&gt;
var nList = new Array();&lt;/p&gt;
&lt;p&gt;// dir member_login to This is a test&lt;br /&gt;
dList[0] = &#039;member_login&#039;;&lt;br /&gt;
nList[0] = &#039;This is a test&#039;;&lt;/p&gt;
&lt;p&gt;function breadcrumbs(sClass, sDelimiter)&lt;br /&gt;
{&lt;br /&gt;
    if(!sDelimiter) sDelimiter = &#039;|&#039;;&lt;br /&gt;
    var sURL = (location.pathname.indexOf(&#039;?&#039;) != -1) ? location.pathname.substring(0, location.pathname.indexOf(&#039;?&#039;)) : location.pathname;&lt;br /&gt;
        sURL = (location.pathname.charAt(0) == &#039;/&#039;) ? location.pathname.substring(1) : location.pathname;&lt;br /&gt;
    var aURL = sURL.split(&#039;/&#039;);&lt;br /&gt;
    if(aURL)&lt;br /&gt;
    {&lt;br /&gt;
      var sOutput = &#039;&lt;a href=&quot;/&quot;&gt;Home&lt;/a&gt; &#039; + sDelimiter + &#039; &#039;;&lt;br /&gt;
      var sPath = &#039;/&#039;;&lt;br /&gt;
      for(var i = 0; i &amp;lt; aURL.length; i++)&lt;br /&gt;
      {&lt;br /&gt;
        if(aURL[i].indexOf(&#039;.html&#039;)!=-1)continue;&lt;br /&gt;
        sPath += aURL[i] + &#039;/&#039;;&lt;br /&gt;
        for(var s = 0; s &amp;lt; dList.length; s++)if(aURL[i]==dList[s])aURL[i]=nList[s];&lt;br /&gt;
        sOutput += &#039;&lt;a&gt;&#039; + aURL[i] + &#039;&lt;/a&gt;&#039;;&lt;br /&gt;
        sOutput += &#039; &#039; + sDelimiter + &#039; &#039;;&lt;br /&gt;
      }&lt;br /&gt;
      sOutput += document.title;&lt;br /&gt;
      document.write(sOutput);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Apr 2002 14:19:58 +0000</pubDate>
 <dc:creator>Sparklebug</dc:creator>
 <guid isPermaLink="false">comment 1106099 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/altering-javascript-breadcrumb-nav#comment-1106096</link>
    <description> &lt;p&gt;how did that work?&lt;/p&gt;
&lt;p&gt;Thanks Howard Stern......&lt;/p&gt;
 </description>
     <pubDate>Thu, 04 Apr 2002 13:52:53 +0000</pubDate>
 <dc:creator>detox</dc:creator>
 <guid isPermaLink="false">comment 1106096 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/altering-javascript-breadcrumb-nav#comment-1106055</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;//substitute this line&lt;br /&gt;document.write(output + document.title);&lt;br /&gt;&lt;br /&gt;//with these lines where &amp;#039;- organisation name&amp;#039; the text you want to get rid of&lt;br /&gt;var strTitle = document.title.replace(/- organisation name/,&amp;quot;&amp;quot;);&lt;br /&gt;document.write(output + strTitle);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
 </description>
     <pubDate>Wed, 03 Apr 2002 17:31:38 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1106055 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
