Team:UNIK Copenhagen/Signe tabs
From 2013.igem.org
(Difference between revisions)
Line 30: | Line 30: | ||
padding-left: 10px; | padding-left: 10px; | ||
background: #f6f6f6; | background: #f6f6f6; | ||
- | z-index: | + | z-index: 100; |
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-bottom: 0px; | border-bottom: 0px; | ||
Line 54: | Line 54: | ||
position: relative; | position: relative; | ||
top: 20px; | top: 20px; | ||
- | z-index: | + | z-index: 60; |
height: 150px; | height: 150px; | ||
overflow: hidden; | overflow: hidden; | ||
Line 62: | Line 62: | ||
</style> | </style> | ||
- | <script type= | + | <script type=”text/javascript”> |
function tab(tab) { | function tab(tab) { | ||
- | document.getElementById( | + | document.getElementById(‘tab1′).style.display = ‘none’; |
- | document.getElementById( | + | document.getElementById(‘tab2′).style.display = ‘none’; |
- | document.getElementById( | + | document.getElementById(‘li_tab1′).setAttribute(“class”, “”); |
- | document.getElementById( | + | document.getElementById(‘li_tab2′).setAttribute(“class”, “”); |
- | document.getElementById(tab).style.display = | + | document.getElementById(tab).style.display = ‘block’; |
- | document.getElementById( | + | document.getElementById(‘li_’+tab).setAttribute(“class”, “active”); |
} | } | ||
</script> | </script> |
Revision as of 16:00, 13 August 2013