Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function hideSubmenu( elem , thisElem){ | function hideSubmenu( elem , thisElem){ | ||
- | var url = document. | + | var url = document.URL; |
var splitted = new Array(); | var splitted = new Array(); | ||
- | alert(splitted[ | + | splitted = url.split("2011.igem.org/Team:Freiburg/"); |
+ | alert(splitted[1]); | ||
var submenus= ['sub-team','sub-project']; | var submenus= ['sub-team','sub-project']; | ||
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ |
Revision as of 15:04, 3 July 2011