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: 9999;
+
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: 5;
+
z-index: 60;
height: 150px;
height: 150px;
overflow: hidden;
overflow: hidden;
Line 62: Line 62:
</style>
</style>
-
<script type="text/javascript">
+
<script type=”text/javascript”>
function tab(tab) {
function tab(tab) {
-
document.getElementById('tab1').style.display = 'none';
+
document.getElementById(‘tab1′).style.display = ‘none’;
-
document.getElementById('tab2').style.display = 'none';
+
document.getElementById(‘tab2′).style.display = ‘none’;
-
document.getElementById('li_tab1').setAttribute("class", "");
+
document.getElementById(‘li_tab1′).setAttribute(“class”, “”);
-
document.getElementById('li_tab2').setAttribute("class", "");
+
document.getElementById(‘li_tab2′).setAttribute(“class”, “”);
-
document.getElementById(tab).style.display = 'block';
+
document.getElementById(tab).style.display = ‘block’;
-
document.getElementById('li_'+tab).setAttribute("class", "active");
+
document.getElementById(‘li_’+tab).setAttribute(“class”, “active”);
}
}
</script>
</script>

Revision as of 16:00, 13 August 2013

Untitled 1

This is the text for tab 1