Template:UCSF/subnav

From 2010.igem.org

(Difference between revisions)
Line 109: Line 109:
     nav.className+="parent parent-"+i;
     nav.className+="parent parent-"+i;
     if(i==result.length-1){
     if(i==result.length-1){
-
       nav.className="current";
+
       if(i==1){nav.className+="current";}
-
       if(result.length==2){nav.className+=" first";}
+
       else{nav.className="current";}
     }
     }
     var loc = "http:\/\/2010.igem.org\/Team:UCSF";
     var loc = "http:\/\/2010.igem.org\/Team:UCSF";

Revision as of 14:35, 9 October 2010