Wiki/Team:Warsaw/igem notebook.htm
From 2008.igem.org
(Difference between revisions)
m |
|||
Line 2: | Line 2: | ||
<html> | <html> | ||
<script language="JavaScript"> | <script language="JavaScript"> | ||
+ | function switchMenu(obj,name) { | ||
+ | |||
+ | name = typeof(name) != 'undefined' ? name : "menu_item"; | ||
+ | |||
+ | //var m=document.getElementsByName(name); | ||
+ | var m=document.getElementsByTagName("div"); | ||
+ | for (var i=0;i<m.length;i++) | ||
+ | { | ||
+ | //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); | ||
+ | if ( el.style.display != "none" ) { | ||
+ | //el.style.display = "none"; | ||
+ | if (document.getElementById) { // DOM3 = IE5, NS6 | ||
+ | document.getElementById(obj).style.display = 'none'; | ||
+ | } | ||
+ | else { | ||
+ | if (document.layers) { // Netscape 4 | ||
+ | document.obj.display = 'none'; | ||
+ | } | ||
+ | else { // IE 4 | ||
+ | document.all.obj.style.display = 'none'; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | else { | ||
+ | //el.style.display = "block"; | ||
+ | if (document.getElementById) { // DOM3 = IE5, NS6 | ||
+ | document.getElementById(obj).style.display = 'block'; | ||
+ | } | ||
+ | else { | ||
+ | if (document.layers) { // Netscape 4 | ||
+ | document.obj.display = 'block'; | ||
+ | } | ||
+ | else { // IE 4 | ||
+ | document.all.obj.style.display = 'block'; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
qs=parent.document.URL; | qs=parent.document.URL; | ||
if (qs.indexOf('#')>0) switchMenu('strains','menu_item'); | if (qs.indexOf('#')>0) switchMenu('strains','menu_item'); | ||
Line 341: | Line 386: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
<!-- | <!-- | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
//--> | //--> | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 17:03, 29 October 2008
ProtocolsPrimersVectorsStrainsJavaScript tools developed to make work with iGEM notebook more comfortable |