Template:Peking2012 Color Epilogue

From 2012.igem.org

(Difference between revisions)
m
m
 
(2 intermediate revisions not shown)
Line 55: Line 55:
   border-style: solid;
   border-style: solid;
   border-width: 1px;
   border-width: 1px;
-
   border-color: #35ffff;
+
   border-color: #35dfff;
   z-index: 20;
   z-index: 20;
 +
  filter: Alpha(Opacity=90%);
 +
  -moz-opacity: 0.9;
 +
  opacity: 0.9;
}
}
#PKU_navi_menu *
#PKU_navi_menu *
Line 117: Line 120:
var menutitle = document.getElementsByTagName("h3");
var menutitle = document.getElementsByTagName("h3");
var menuhtml = "";
var menuhtml = "";
-
var indexheight = 1.5 * (menutitle.length-1) * 16; /* 1em = 16px */
+
var indexheight = 1.5 * (menutitle.length+2) * 16; /* 1em = 16px */
function ButtonMouseOver(objPointer)
function ButtonMouseOver(objPointer)
Line 146: Line 149:
     naviHandle = setTimeout(NaviIndexGrowth,50);
     naviHandle = setTimeout(NaviIndexGrowth,50);
   }
   }
-
   naviMenu.style.width=naviIndex_Cur*420+'px';
+
   naviMenu.style.width=naviIndex_Cur*250+'px';
   naviMenu.style.height=naviIndex_Cur*indexheight+'px';
   naviMenu.style.height=naviIndex_Cur*indexheight+'px';
}
}
Line 164: Line 167:
     naviHandle = setTimeout(NaviIndexWither,50);
     naviHandle = setTimeout(NaviIndexWither,50);
   }
   }
-
   naviMenu.style.width=naviIndex_Cur*420+'px';
+
   naviMenu.style.width=naviIndex_Cur*250+'px';
   naviMenu.style.height=naviIndex_Cur*indexheight+'px';
   naviMenu.style.height=naviIndex_Cur*indexheight+'px';
}
}
Line 220: Line 223:
for (var it=1;it<menutitle.length;++it)
for (var it=1;it<menutitle.length;++it)
{
{
-
   menuhtml += '<li><a href="#title' + it + '">' + menutitle[it].innerHTML.replace(/^<>$/g,"") + "</a></li>";
+
   menuhtml += '<li><a href="#title' + it + '">' + menutitle[it].innerHTML.replace(/<[^>]*>/g,"") + "</a></li>";
}
}
naviMenu.innerHTML = menuhtml;
naviMenu.innerHTML = menuhtml;

Latest revision as of 13:59, 26 September 2012

  • Totop Totop