Team:Freiburg/Project/toolkit
From 2013.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<html> | <html> | ||
<head> | <head> | ||
+ | <!-- ############################################################################## | ||
+ | |||
+ | JAVASCRIPT | ||
+ | |||
+ | ############################################################################## --> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | function toggle(control){ | ||
+ | var elem = document.getElementById(control); | ||
+ | if(elem.style.display == "none"){ | ||
+ | elem.style.display = "block"; | ||
+ | }else{ | ||
+ | elem.style.display = "none"; | ||
+ | } | ||
+ | }</script> | ||
+ | |||
+ | |||
+ | |||
+ | |||
<!-- ############################################################################## | <!-- ############################################################################## | ||
Line 59: | Line 78: | ||
<div id="main_contant"> | <div id="main_contant"> | ||
- | + | <a href="javascript:toggle('test')"> x Zum aufklappen hier klicken.</a> | |
+ | <br /><div id="test" style="display: none">Dein Text hier</div> | ||
+ | |||
Revision as of 21:33, 17 September 2013