Template:Imperial/09/TopNavigation

From 2009.igem.org

(Difference between revisions)
(New page: <script type="text/javascript"> var address = document.location.href; var addressSplit = address.split("/"); //alert('3='+addressSplit[3]+'; 4='+addressSplit[4]); </script> ...)
 
(137 intermediate revisions not shown)
Line 1: Line 1:
 +
<html>
 +
<style>
 +
#II09_TopMenuWrapper{
 +
width: 725px;
 +
display:block;
 +
        background: url(https://static.igem.org/mediawiki/2009/9/94/II09_Menu_Header_Gray.png) repeat-x bottom;
 +
        text-align:center;
 +
        position:relative;
 +
        float:right;
 +
        margin-top:5px;
 +
        margin-right:10px;
 +
        z-index:5;
 +
        border: 1px solid #000;
 +
}
 +
 +
#II09_TopMenuItem{
 +
bottom:0px;
 +
margin:0px;
 +
padding:5px;
 +
        color: #2cc7f8;
 +
        border-right: 1px solid #000;
 +
        width:100px;
 +
        position:relative;
 +
        text-align:center;
 +
        float:left;
 +
        z-index:7;
 +
}
 +
</style>
 +
<script type="text/javascript">
<script type="text/javascript">
-
     var address = document.location.href;
+
<!-- PROJECT OVERVIEW -->
-
     var addressSplit = address.split("/");
+
if (addressSplit[3]=='Team:Imperial_College_London'){
-
     //alert('3='+addressSplit[3]+'; 4='+addressSplit[4]);
+
     if (addressSplit[4]=='Project_Overview'){
-
</script>
+
document.write('<center><div id="II09_TopMenuWrapper">');
-
<script type="text/javascript">
+
document.write('<span id="II09_TopMenuItem" style="width:120px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Major_results">Major Results</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:120px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/BioBricks">Submitted Parts</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:120px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Achievements">Achievements</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:190px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Manufacturing_Considerations">Manufacturing Considerations</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:120px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/genealogy">Genealogy</a></span></div></center>');
 +
     }
 +
}
 +
<!-- MODULE 1 -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='M1'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M1/EnzymeDelivery">Enzyme Delivery</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M1/PeptideDelivery">Peptide Delivery</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M1/Genetic">Genetic Circuit</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Results#Module_1">Wet Lab</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/M1/Modelling">Modelling</a></span></div></center>');
 +
     }
 +
}
 +
<!-- MODULE 2 -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='M2'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:230px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M2/Genetic">Genetic Circuit</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:230px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Results#Module_2">Wet Lab</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:230px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab">Modelling</a></span></div></center>');
 +
    }
 +
}
 +
<!-- MODULE 3 -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='M3'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M3/RestrictionEnzymes">Restriction Enzymes</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M3/DamMethylation">DAM Methylation</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/M3/Genetic">Genetic Circuit</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Temporal_Control/M3/Wetlab/Results#Module_3">Wet Lab</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Genome_deletion">Modelling</a></span></div></center>');
 +
    }
 +
}
 +
<!-- DRYLAB -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='Drylab'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:175px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Autoinduction">Autoinduction</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:175px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Protein_Production">Protein Production</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:155px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Enzyme">Enzyme</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:175px; border-right:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Genome_deletion">Wet Lab</a></span></div></center>');
 +
    }
 +
}
 +
<!-- TEMPORAL_CONTROL -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='Temporal_Control'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Temporal_Control/Chemical_Induction">Chemoinduction</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Temporal_Control/Autoinduction">Autoinduction</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Temporal_Control/Thermoinduction">Thermoinduction</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Results#Temporal_Control">Wet Lab</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Drylab/Autoinduction">Modelling</a></span></div></center>');
 +
    }
 +
}
 +
<!-- WETLAB -->
 +
if (addressSplit[3]=='Team:Imperial_College_London'){
 +
    if (addressSplit[4]=='Wetlab'){
 +
document.write('<center><div id="II09_TopMenuWrapper">');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Cloning_Strategy">Cloning strategy</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Protocols">Protocols</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/BioBricks">Biobricks</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Results">Results</a></span>');
 +
document.write('<span id="II09_TopMenuItem" style="width:110px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Notebook">Notebook</a></span></div></center>');
 +
    }
 +
}
 +
<!-- NOTEBOOK -->
if (addressSplit[3]=='Team:Imperial_College_London'){
if (addressSplit[3]=='Team:Imperial_College_London'){
-
     if (typeof(addressSplit[4])=='undefined'){
+
     if (addressSplit[4]=='Notebook'){
-
document.write('<html><center><a href="https://2009.igem.org/Team:Imperial_College_London/Major_results"><img style="vertical-align:bottom;" width="10%" src="http://i691.photobucket.com/albums/vv271/dk806/II09_Homepageimage2.png"></a><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/BioBricks"><img style="vertical-align:bottom;" width="10%" src="http://i691.photobucket.com/albums/vv271/dk806/II09_Homepageimage3.png"></a><a href="https://2009.igem.org/Team:Imperial_College_London/Achievements"><img style="vertical-align:bottom;" width="10%" src="http://i691.photobucket.com/albums/vv271/dk806/II09_Homepageimage4.png"></a><a href="https://2009.igem.org/Team:Imperial_College_London/Manufacturing_Considerations"><img style="vertical-align:bottom;" width="10%" src="http://i691.photobucket.com/albums/vv271/dk806/II09_Homepageimage5.png"></a><html><a
+
document.write('<center><div id="II09_TopMenuWrapper">');
-
href="https://2009.igem.org/Team:Imperial_College_London/genealogy"><img style="vertical-align:bottom;" width="10%" src="https://static.igem.org/mediawiki/2009/2/20/II09_WorldMap.png"></a><center></html>
+
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Cloning_Strategy">Cloning strategy</a></span>');
-
<html><table border="0" style="background-color:transparent;" width="100%">
+
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Protocols">Protocols</a></span>');
-
<tr><td width="0%"></td>
+
document.write('<span id="II09_TopMenuItem" style="width:150px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/BioBricks">Biobricks</a></span>');
-
<td width="20%"><center><a href="https://2009.igem.org/Team:Imperial_College_London/Major_results"><b>Major Results</b></a></center></td>
+
document.write('<span id="II09_TopMenuItem" style="width:110px;"><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/Results">Results</a></span>');
-
<td width="20%"><center><a href="https://2009.igem.org/Team:Imperial_College_London/Wetlab/BioBricks"><b>Submitted Parts</b></a></center></td>
+
document.write('<span id="II09_TopMenuItem" style="width:110px;border:none;"><a href="https://2009.igem.org/Team:Imperial_College_London/Notebook">Notebook</a></span></div></center>');
-
<td width="20%"><center><a href="https://2009.igem.org/Team:Imperial_College_London/Achievements"><b>Achievements</b></a></center></td>
+
-
<td width="20%"><center><a href="https://2009.igem.org/Team:Imperial_College_London/Manufacturing_Considerations"><b>Manufacturing Considerations</b></a></center></td>
+
-
<td width="20%"><center><a href="https://2009.igem.org/Team:Imperial_College_London/genealogy"><b>Genealogy</b></a></center></td>
+
-
<td width="20%"><center><b>&nbsp;</b></a></center></td>
+
-
</tr></table></html>');
+
     }
     }
}
}
</script>
</script>
 +
</html>

Latest revision as of 22:17, 19 October 2009