Wiki/Team:Warsaw/igem notebook.htm
From 2008.igem.org
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
{{WarHead}} | {{WarHead}} | ||
<html> | <html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<tr> | <tr> | ||
Line 386: | Line 338: | ||
<script type="text/javascript"> | <script type="text/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; | ||
+ | if (qs.indexOf('#')>0) document.getElementById("strains").style.display = 'block'; | ||
//--> | //--> | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 17:07, 29 October 2008
ProtocolsPrimersVectorsStrainsJavaScript tools developed to make work with iGEM notebook more comfortable |