Template:UCSF/subnav/Hello/BBB/AAA

From 2010.igem.org

(Difference between revisions)
Line 115: Line 115:
     for(var j=1;j<=i;j++){loc+="\/";loc+=result[j];}
     for(var j=1;j<=i;j++){loc+="\/";loc+=result[j];}
     nav.innerHTML="<a href=\""+loc+"\">"+result[i]+"<\/a>";
     nav.innerHTML="<a href=\""+loc+"\">"+result[i]+"<\/a>";
-
     if(nav.className=="current"){nav.innerHTML="<span>"+result[i].substr(1)+"<\/span>";}
+
     if(nav.className=="current"){nav.innerHTML="<span>"+result[i]+"<\/span>";}
     subnav.appendChild(nav);
     subnav.appendChild(nav);
   }
   }

Revision as of 02:37, 10 October 2010