Team:Freiburg/Project/toolkit
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 12: | Line 12: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function toggle(control){ | function toggle(control){ | ||
- | + | var elem = document.getElementById(control); | |
- | + | ||
- | + | if(elem.style.display == "none"){ | |
- | + | elem.style.display = "block"; | |
- | + | }else{ | |
- | + | elem.style.display = "none"; | |
- | }</script> | + | } |
+ | } | ||
+ | </script> | ||
+ | |||
Line 78: | Line 81: | ||
<div id="main_contant" style="height:500px;"> | <div id="main_contant" style="height:500px;"> | ||
- | <a href="javascript:toggle('test')"> x Zum aufklappen hier klicken.</a> | + | <a href="javascript:toggle('test')"> x Zum aufklappen hier klicken. (1)</a> |
- | <br /><div id="test" style="display: none"> | + | <br /><div id="test" style="display: none">Text Nummero Uno ... |
+ | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, | ||
+ | sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</div> | ||
+ | |||
+ | <br /> | ||
Revision as of 21:37, 17 September 2013