Template:UCSF/subnav
From 2010.igem.org
(Difference between revisions)
(13 intermediate revisions not shown) | |||
Line 8: | Line 8: | ||
height:20px; | height:20px; | ||
width:auto; | width:auto; | ||
- | border: | + | border:1px grey solid; |
border-bottom:none; | border-bottom:none; | ||
- | padding: | + | padding: 0px; |
} | } | ||
#breadcrumbs li { | #breadcrumbs li { | ||
Line 104: | Line 104: | ||
var re = reg.exec(PageURL); | var re = reg.exec(PageURL); | ||
var result; | var result; | ||
+ | if(re[1]=="") | ||
+ | { | ||
+ | var subnav = document.getElementById('breadcrumbs'); | ||
+ | //subnav.style.display="none"; | ||
+ | return; | ||
+ | } | ||
result=re[1].split("\/"); | result=re[1].split("\/"); | ||
+ | |||
var subnav=document.getElementById('sub-navigation'); | var subnav=document.getElementById('sub-navigation'); | ||
for (var i=1;i<result.length;i++){ | for (var i=1;i<result.length;i++){ |
Latest revision as of 10:33, 18 October 2010