Template:WarHead1

From 2009.igem.org

(Difference between revisions)
Line 577: Line 577:
name = typeof(name) != 'undefined' ? name : "menu_item";
name = typeof(name) != 'undefined' ? name : "menu_item";
-
//var m=document.getElementsByName(name);
+
document.getElementById('team_submenu').style.display = "none";
-
var m=document.getElementsByTagName("div");
+
document.getElementById('project_submenu').style.display = "none";
-
for (var i=0;i<m.length;i++)
+
document.getElementById('modelling_submenu').style.display = "none";
-
{
+
document.getElementById('lab_submenu').style.display = "none";
-
//alert(m[i].getAttribute("name"));
+
-
if (m[i].getAttribute("name")==name) if(m[i].style.display!="none") if (m[i].id!=obj) m[i].style.display="none";
+
-
 
+
-
}
+
var el = document.getElementById(obj);
var el = document.getElementById(obj);
Line 654: Line 650:
<li class="sub">[[Team:Warsaw/Modelling/Structural|Structural]]
<li class="sub">[[Team:Warsaw/Modelling/Structural|Structural]]
<html></div></html>
<html></div></html>
-
<html><li class="main" onClick="switchMenu('lab_submenu')"><a name="lab" style="cursor: hand; cursor: pointer;">Lab Work</a></li>
+
<html><li class="main" onClick="switchMenu('lab_submenu')"><a name="lab" style="cursor: hand; cursor: pointer;">Lab Work</a></li></html>
-
<div name="menu_item" id="lab_submenu" style="display: {{{lab}}}"></html>
+
<div class="switch" name="menu_item" id="lab_submenu" style="display: {{{lab}}}">
<li class="sub">[[Team:Warsaw/Notebook|Notebook]]
<li class="sub">[[Team:Warsaw/Notebook|Notebook]]
<li class="sub">[[Team:Warsaw/protocols|Protocols]]
<li class="sub">[[Team:Warsaw/protocols|Protocols]]
<li class="sub">[[Team:Warsaw/Resources|Resources]]
<li class="sub">[[Team:Warsaw/Resources|Resources]]
-
<html></div></html>
+
</div>
<li class="main">[[Team:Warsaw/Parts|Submitted Parts]]</li>
<li class="main">[[Team:Warsaw/Parts|Submitted Parts]]</li>
<li class="main">[[Team:Warsaw/Glossary|Glossary]]</li>
<li class="main">[[Team:Warsaw/Glossary|Glossary]]</li>

Revision as of 10:19, 15 October 2009