Team:Yale/Templates/Yale Header Project
From 2010.igem.org
(Difference between revisions)
Line 210: | Line 210: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function switchMenu(obj) { | + | function switchMenu(obj) { |
- | + | var el = document.getElementById(obj); | |
- | + | if ( el.style.display != 'none' ) { | |
- | + | el.style.display = 'none'; | |
- | + | } | |
- | + | else { | |
- | + | el.style.display = ''; | |
- | + | } | |
- | } | + | } |
- | function | + | |
- | + | function collapseAll(objs) { | |
- | } | + | var i; |
+ | for (i=0;i<objs.length;i++ ) { | ||
+ | objs[i].style.display = 'none'; | ||
+ | } | ||
+ | } | ||
+ | function pageLoad() { | ||
+ | collapseAll($('monday','myDiv2','myDiv3')); | ||
+ | } | ||
+ | addEvent(window,'load',pageLoad); | ||
</script> | </script> | ||
Revision as of 05:38, 23 October 2010