Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
} | } | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
- | + | var sbmenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | |
+ | var smList = ["sub-members#sub-attributions#sub-freiburg", "sub-overview#sub-motivation#sub-description#sub-results#sub-modelling#sub-notebook#sub-safety", "", "", ""]; | ||
+ | for (var i = 0; i < smList.length; i++){ | ||
+ | if (smList[i].search(elem) >= 0){ | ||
+ | alert("da"); | ||
+ | alert(sbmenus[i]); | ||
+ | } | ||
+ | } | ||
hideSubmenu(id); | hideSubmenu(id); | ||
highlightMenuItem(url); | highlightMenuItem(url); |
Revision as of 15:41, 14 July 2011