Template:UCSF/subnav

From 2010.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 8: Line 8:
height:20px;
height:20px;
width:auto;
width:auto;
-
border:1px #ede8e2 solid;
+
border:1px grey solid;
border-bottom:none;
border-bottom:none;
-
padding: 1px;
+
padding: 0px;
}
}
#breadcrumbs li {
#breadcrumbs li {
Line 104: Line 104:
var re =  reg.exec(PageURL);
var re =  reg.exec(PageURL);
var  result;
var  result;
-
result=re[1].split("\/");
+
if(re[1]=="")
-
if(result.length==0)
+
{
{
-
alert(1);
 
var subnav = document.getElementById('breadcrumbs');
var subnav = document.getElementById('breadcrumbs');
-
subnav.style="display:none;";
+
//subnav.style.display="none";
 +
return;
}
}
 +
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