Team:Freiburg/Project/toolkit
From 2013.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
############################################################################## --> | ############################################################################## --> | ||
- | <script | + | <script type="text/javascript"> |
- | + | function showDiv (divId) | |
- | function | + | { |
- | + | var div = document.getElementById (divId); | |
- | + | var divs = document.getElementsByTagName('div'); | |
- | + | for (var i in divs) | |
- | } | + | { |
- | + | divs [i].className = "hidden"; | |
- | </script> | + | } |
+ | div.className = "shown"; | ||
+ | } | ||
+ | </script> | ||
Line 37: | Line 40: | ||
} | } | ||
- | + | .hidden { | |
+ | display:none; | ||
+ | } | ||
+ | .shown { | ||
+ | display:block; | ||
+ | } | ||
Line 84: | Line 92: | ||
<div id="first_checkboxes"> | <div id="first_checkboxes"> | ||
- | <input | + | <input type="radio" onclick="showDiv ('1')" name="selectme">1</input> |
- | <input | + | <input type="radio" onclick="showDiv ('2')" name="selectme">2</input> |
- | <input | + | <input type="radio" onclick="showDiv ('3')" name="selectme">3</input> |
- | <input | + | <input type="radio" onclick="showDiv ('4')" name="selectme">4</input> |
+ | |||
</div> | </div> | ||
<div id="answer_first_checkboxes"> | <div id="answer_first_checkboxes"> | ||
- | <div id=" | + | <div id="1" class="hidden">Hey, its me, 1</div> |
- | + | <div id="2" class="hidden">Hey, its me, 2</div> | |
- | </ | + | <div id="3" class="hidden">Hey, its me, 3</div> |
- | + | <div id="4" class="hidden">Hey, its me, 4</div> | |
- | + | ||
</div> | </div> | ||
Revision as of 23:37, 17 September 2013
1
2
3
4
Hey, its me, 1
Hey, its me, 2
Hey, its me, 3
Hey, its me, 4