Team:Freiburg/Project/toolkit
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 10: | Line 10: | ||
############################################################################## --> | ############################################################################## --> | ||
- | <script | + | <script language="javascript"> |
- | function toggle( | + | function toggle(divId) { |
- | + | var divArray = document.getElementsByTagName("div"); | |
- | + | for(i = 0; i < divArray.length; i++){ | |
- | + | if(divArray[i].id == divId){ | |
- | + | if(divArray[i].style.display != 'none'){ | |
- | + | divArray[i].style.display = 'none'; | |
- | + | }else{ | |
- | + | divArray[i].style.display = ''; | |
- | + | } | |
- | + | } | |
- | + | } | |
- | + | ||
- | + | ||
- | { | + | |
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
} | } | ||
</script> | </script> | ||
Line 94: | Line 82: | ||
<div id="main_contant" style="height:500px;"> | <div id="main_contant" style="height:500px;"> | ||
- | < | + | <form> |
- | + | <input type="checkbox" checked onClick="toggle('descr');"> See Descriptions | |
- | + | </form> | |
- | + | ||
- | + | <div id="descr">Hello This is #1</div> | |
- | + | <div id="descr">Hello This is #2</div> | |
- | + | <div id="descr">Hello This is #3</div> | |
- | + | <div id="non-descript">Hello This is not one of them</div> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | <div id=" | + | |
- | + | ||
- | </div> | + | |
</div> | </div> |
Revision as of 21:52, 17 September 2013
Hello This is #1
Hello This is #2
Hello This is #3
Hello This is not one of them