Template:UpperTabs

From 2011.igem.org

(Difference between revisions)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<script type="text/javascript">
 
-
var elem = document.getElementById('p-logo');
+
<body>
-
elem.innerHTML='<a href="https://2010.igem.org/Team:Warsaw"><img src="https://static.igem.org/mediawiki/2010/9/92/Pasekzmieniony.png"/></a>';
+
-
</script>
+
-
<head>
+
<div id="tabs">
-
<title>Example Tabs</title>
+
<ul>
-
<!-- to są właściwe style, w sekcji head -->
+
<li id="Team"><a href="https://2011.igem.org/Team:Warsaw/Team">Team and Sponsors</a></li>
-
        <style type="text/css">
+
<li id="Project"><a href="https://2011.igem.org/Team:Warsaw/Project">Project</a></li>
 +
<li id="RBSmeasurement"><a href="https://2011.igem.org/Team:Warsaw/RBSmeasurement">RBS measurement</a></li>
 +
<li id="ExpressionAdaptors"><a href="https://2011.igem.org/Team:Warsaw/ExpressionAdaptors">Expression Adaptors</a></li>
 +
<li id="SyntheticCloning"><a href="https://2011.igem.org/Team:Warsaw/SyntheticCloning">Synthetic Cloning</a></li> 
 +
<li id="Software"><a href="https://2011.igem.org/Team:Warsaw/Software">Software</a></li> 
 +
<li id="Parts"><a href="https://2011.igem.org/Team:Warsaw/Parts">Parts</a></li>   
 +
<li id="HP"><a href="https://2011.igem.org/Team:Warsaw/HP" style='width:auto;'> HP </a></li>
 +
<li id="Safe"><a href="https://2011.igem.org/Team:Warsaw/Safety" style='width:auto;'> Safety </a></li>
 +
</ul>
 +
</div>
 +
<script type="text/javascript">
 +
function ChangeUpperTab(ActiveTab, string) {
-
/* CSS DLA CAŁEJ STRONY */
 
-
body {
+
if (ActiveTab=='Project'){
-
    background: #000000;  
+
document.getElementById('Project').innerHTML="<span>Project</span>";
}
}
-
 
+
if (ActiveTab=='SyntheticCloning'){
-
 
+
document.getElementById('SyntheticCloning').innerHTML="<span>Synthetic Cloning</span>";
-
 
+
-
 
+
-
#top-section {
+
-
    background: url('https://static.igem.org/mediawiki/2010/9/92/Pasekzmieniony.png') no-repeat 0px 0px;
+
-
    border: 0px;
+
-
    height: 150px;
+
}
}
-
 
+
if (ActiveTab=='RBSmeasurement'){
-
#menubar {
+
document.getElementById('RBSmeasurement').innerHTML="<span>RBS measurement;</span>";
-
    margin-top: 50px;
+
}
}
-
 
+
if (ActiveTab=='ExpressionAdaptors'){
-
#menubar li > a {
+
document.getElementById('ExpressionAdaptors').innerHTML="<span>Expression Adaptors</span>";
-
color: #808080;
+
}
}
-
#menubar li.selected > a {
+
if (ActiveTab=='Parts'){
-
color: #808080;
+
document.getElementById('Parts').innerHTML="<span>Parts</span>";
-
font-weight: bold;
+
}
}
-
 
+
if (ActiveTab=='Software'){
-
#menubar li > a:hover {
+
document.getElementById('Software').innerHTML="<span>Software</span>";
-
color: #61eb13;
+
}
}
 +
if (ActiveTab=='HP'){
 +
document.getElementById('HP').innerHTML="<span style='width:auto;'>HP</span>";
-
#menubar li {
 
-
color: #ffffff;
 
}
}
-
 
+
if (ActiveTab=='Team'){
-
#search-controls {
+
document.getElementById('Team').innerHTML="<span>Team and Sponsors</span>";
-
    margin-top: 30px;
+
-
    margin-right: 30px;
+
}
}
-
#searchGoButton {
+
if (ActiveTab=='Safe'){
-
color: #ffffff;
+
document.getElementById('Safe').innerHTML="<span style='width:auto;'>Safety</span>";
-
}
+
-
#searchGoButton:hover {
 
-
color: #61eb13;
 
}
}
-
#mw-searchButton {
 
-
color: #ffffff;
 
}
}
 +
ChangeUpperTab(ActiveTab);
-
#mw-searchButton:hover {
+
</script>
-
color: #61eb13;
+
-
}
+
-
 
+
-
#content {
+
-
    background: url("https://static.igem.org/mediawiki/2010/3/34/Tlo_strony.jpg") repeat-y;
+
-
    border: 0px;
+
-
}
+
-
 
+
-
 
+
-
#footer-box {
+
-
    background: url("https://static.igem.org/mediawiki/2010/a/ae/Murek_dol.jpg") no-repeat 0px 0px;
+
-
    border: 0px;
+
-
    height: 50px;
+
-
}
+
-
 
+
-
#f-list > li a {
+
-
    color: #ffffff;
+
-
    font-size: 10px;
+
-
}
+
-
 
+
-
#f-list > li a:hover {
+
-
    color: #61eb13;
+
-
}
+
-
 
+
-
#f-poweredbyico {
+
-
    margin-right: 20px;
+
-
}
+
-
 
+
-
#f-copyrightico {
+
-
    margin-left: 40px;
+
-
}
+
-
 
+
-
 
+
-
 
+
-
/* END CSS DLA STRONY */
+
-
 
+
-
 
+
-
 
+
-
 
+
-
html {
+
-
    min-width: 600px;
+
-
    background: #000000;
+
-
    padding: 0.5em 2em 3em 2em;
+
-
}
+
-
 
+
-
body, div, th, td, h2, h3, h4 { /* redundant rules for bad browsers  */ 
+
-
    font-family: verdana,sans-serif;
+
-
    font-size:    x-small;
+
-
    voice-family: "\"}\"";
+
-
    voice-family: inherit;
+
-
    font-size: small;
+
-
    color: #333;
+
-
+
-
 
+
-
a {
+
-
    color: #777; 
+
-
}
+
-
 
+
-
a:hover {
+
-
    color: #000; text-decoration: none;
+
-
}
+
-
 
+
-
a:active {
+
-
    color: #000;
+
-
}
+
-
 
+
-
 
+
-
p {
+
-
    line-height: 140%;
+
-
}
+
-
 
+
-
 
+
-
h1 {
+
-
display:none;
+
-
}
+
-
 
+
-
 
+
-
h2 {
+
-
    font-family: trebuchet ms,arial,verdana,sans-serif;
+
-
    font-weight: bold;
+
-
    font-size: 130%;
+
-
    color: #333;
+
-
    padding-bottom: 2px;
+
-
    border-bottom: 1px dotted #00bfff;
+
-
    margin: 0;
+
-
}
+
-
 
+
-
 
+
-
.note {
+
-
    background: #EEE;
+
-
    background: #afeeee;
+
-
    padding: 4px;
+
-
    font-family: tahoma,verdana,sans-serif;
+
-
    font-size: 85%;
+
-
    line-height: 130%;
+
-
}
+
-
 
+
-
 
+
-
#main {
+
-
    text-align: left;
+
-
    border: 1px solid #00bfff;
+
-
    background: #FFFDF3;
+
-
    clear: both;
+
-
    width: 98%;
+
-
    margin-top: -1px;
+
-
    margin-left: 8px;
+
-
}
+
-
 
+
-
 
+
-
#bodyarea {
+
-
    padding: 20px;
+
-
    min-height: 300px;
+
-
 
+
-
<!--[if IE]>
+
-
margin-left: 0px;
+
-
<![endif]-->
+
-
 
+
-
}
+
-
 
+
-
 
+
-
#topbar {
+
-
    padding-bottom: 0.5em;
+
-
    font-family: trebuchet ms,verdana,sans-serif;
+
-
    font-weight: bold;
+
-
    font-size: 200%;
+
-
}
+
-
 
+
-
#topbar a {
+
-
    text-decoration: none; color: #000;
+
-
}
+
-
 
+
-
#topbar a:hover {
+
-
    text-decoration: none;
+
-
}
+
-
 
+
-
 
+
-
 
+
-
/*///////////// Tabs Code ////////////*/
+
-
 
+
-
#tabs {
+
-
    font-family: tahoma, verdana, sans-serif;
+
-
    font-size: 130%;
+
-
    clear: both;
+
-
    text-align: center;
+
-
    text-decoration: none;
+
-
    margin-left: 40px;
+
-
}
+
-
 
+
-
#tabs ul {
+
-
    display: inline;
+
-
    list-style-type: none;
+
-
    list-style: none;
+
-
   
+
-
    margin: 0;
+
-
    padding: 0;
+
-
    text-decoration: none;
+
-
}
+
-
 
+
-
#tabs li {
+
-
    float: left;
+
-
    list-style: none;
+
-
    list-style-type: none;
+
-
}
+
-
 
+
-
#tabs a,span {
+
-
    width: 90px;
+
-
    height: 50px;
+
-
}
+
-
 
+
-
#tabs span {
+
-
    position: relative;
+
-
    top: 0;
+
-
    margin: 0 2px -2px 0;
+
-
    float: left;
+
-
    background: #afeeee;
+
-
    border-right: 1px solid #00bfff;
+
-
    border-top: 1px solid #00bfff;
+
-
    border-left: 1px solid #00bfff;
+
-
    padding: 6px 4px 1px 10px;
+
-
    text-decoration: none;
+
-
    color: #333;
+
-
}
+
-
 
+
-
#tabs a {
+
-
    position: relative;
+
-
    top: 0;
+
-
    margin: 2px 2px -2px 0;
+
-
    float: left;
+
-
    background: #ffdead;
+
-
    border-right: 1px dotted #00bfff;
+
-
    border-top: 1px dotted #00bfff;
+
-
    border-left: 1px dotted #00bfff;
+
-
    padding: 3px 4px 1px 10px;
+
-
    text-decoration: none;
+
-
    color: #fdfdfd;
+
-
}
+
-
 
+
-
#tabs a:hover {
+
-
    background: #ffdead;
+
-
    position: relative;
+
-
    top: 0;
+
-
    padding: 5px 4px 1px 10px;
+
-
    margin:  0px 2px -2px 0;
+
-
    color:#525252;
+
-
}
+
-
 
+
-
 
+
-
#tabs a.active {
+
-
    position: relative;
+
-
    top: 0;
+
-
    margin: 0 2px -2px 0;
+
-
    float: left;
+
-
    background: #afeeee;
+
-
    border-right: 1px solid #666;
+
-
    border-top: 1px solid #666;
+
-
    border-left: 1px solid #666;
+
-
    padding: 6px 4px 1px 10px;
+
-
    text-decoration: none;
+
-
    color: #333;
+
-
}
+
-
 
+
-
#tabs a.active:hover {
+
-
    position: relative;
+
-
    top: 0;
+
-
    margin: 0 2px -2 0;
+
-
    float: left;
+
-
    background: #afeeee;
+
-
    border-right: 1px solid #666;
+
-
    border-top: 1px solid #666;
+
-
    border-left: 1px solid #666;
+
-
    padding: 6px 4px 6px 10px;
+
-
    text-decoration: none;
+
-
    color: #333;
+
-
}
+
-
 
+
-
#subtabs {
+
-
    float: none;
+
-
    clear: both;
+
-
    height: 0px;
+
-
}
+
-
 
+
-
#subtabs ul {
+
-
    list-style: none;
+
-
    list-style-type: none;
+
-
    margin: 0;
+
-
    padding: 0;
+
-
}
+
-
 
+
-
#subtabs li {
+
-
    list-style: none;
+
-
    list-style-type: none;
+
-
    float: left;
+
-
    padding: 0 60px 20px 8px;
+
-
    border-left: 1px dashed #00bfff;
+
-
    font-size: 120%;
+
-
    white-space: nowrap;
+
-
}
+
-
 
+
-
#subtabs li:first-child {
+
-
    border-left: none;
+
-
}
+
-
 
+
-
#subtabs {
+
-
    font-family: tahoma,verdana,sans-serif;
+
-
    font-size: 85%;
+
-
    background: #afeeee;
+
-
    color: #666;
+
-
    padding: 8px 7px 21px 7px; /* for All other Browsers */
+
-
}
+
-
 
+
-
#subtabs li > a {
+
-
    color: #6a6a6a;
+
-
}
+
-
 
+
-
#subtabs li > a:hover {
+
-
    color: #383838;
+
-
}
+
-
 
+
-
#subtabs li > a.active {
+
-
    font-weight: bold;
+
-
}
+
-
 
+
-
        </style>
+
-
<!-- koniec stylów -->
+
-
</head>
+

Latest revision as of 21:25, 17 September 2011