Template:Hide
From 2009.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | < | + | <head> |
- | + | <script type="text/javascript"> | |
- | + | <!-- | |
+ | function toggleBox(szDivID, iState) // 1 visible, 0 hidden | ||
+ | { | ||
+ | if(document.layers) //NN4+ | ||
+ | { | ||
+ | document.layers[szDivID].visibility = iState ? "show" : "hide"; | ||
+ | } | ||
+ | else if(document.getElementById) //gecko(NN6) + IE 5+ | ||
+ | { | ||
+ | var obj = document.getElementById(szDivID); | ||
+ | obj.style.visibility = iState ? "visible" : "hidden"; | ||
+ | } | ||
+ | else if(document.all) // IE 4 | ||
+ | { | ||
+ | document.all[szDivID].style.visibility = iState ? "visible" : "hidden"; | ||
+ | } | ||
+ | } | ||
+ | // --> | ||
+ | </script> | ||
+ | |||
+ | </head> | ||
</html> | </html> |
Revision as of 08:47, 8 September 2009