Difference between revisions of "Template:Toulouse/nav"

Line 9: Line 9:
 
     <!-- ###########NAVIGATION BAR############################################################## -->
 
     <!-- ###########NAVIGATION BAR############################################################## -->
 
      
 
      
<nav id="mainav" class="fl_right">
+
<nav id="mainav" class="center">
 
       <ul class="clear">
 
       <ul class="clear">
 
      
 
      
 +
<!--<div id="logo" class="fl_left">
 +
      <h1><a href="https://2015.igem.org/Team:Toulouse">ApiColi</a></h1>
 +
    </div>-->
 
 
<li class="drop" id="home"><a href="https://2015.igem.org/Team:Toulouse"><b>Home</b></a></li>
+
<li ><a href="https://2015.igem.org/Team:Toulouse" id="test" ><b>Home</b></a></li>
 +
 +
 
 
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/Team/members/Presentation" id="team"><b>Team</b></a>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/Team/members/Presentation" id="team"><b>Team</b></a>
Line 20: Line 25:
 
    <li><a href="https://2015.igem.org/Team:Toulouse/Team/members/Gallery">Gallery</a></li>
 
    <li><a href="https://2015.igem.org/Team:Toulouse/Team/members/Gallery">Gallery</a></li>
 
    <li><a  href="https://2015.igem.org/Team:Toulouse/Team/members/funFacts">Fun Facts</a></li>
 
    <li><a  href="https://2015.igem.org/Team:Toulouse/Team/members/funFacts">Fun Facts</a></li>
<li><a  href="https://2015.igem.org/Team:Toulouse/Team/members/Acknowledgements" style="font-size:12px;">Acknowledgements</a></li>
+
<li><a  href="https://2015.igem.org/Team:Toulouse/Team/members/Acknowledgements">Acknowledgements</a></li>
 
         </ul>
 
         </ul>
 
     </li>
 
     </li>
Line 28: Line 33:
 
         <li><a href="https://2015.igem.org/Team:Toulouse/project/context">Context</a></li>
 
         <li><a href="https://2015.igem.org/Team:Toulouse/project/context">Context</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/project/strat">Strategy</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/project/strat">Strategy</a></li>
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/regulation">Regulation</a></li>
 
 
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/attract">Attract</a></li>
 
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/attract">Attract</a></li>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/eradicate">Eradicate</a></li>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/eradicate">Eradicate</a></li>
 +
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/regulation">Regulation</a></li>
 
         </ul>
 
         </ul>
 
     </li>
 
     </li>
Line 55: Line 60:
 
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/collaborations">Collaborations</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/collaborations">Collaborations</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/press">Press</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/press">Press</a></li>
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/awareness" style="font-size:12px;" >Raising awareness</a></li>
+
<li><a href="https://2015.igem.org/Team:Toulouse/humanp/awareness">Raising awareness</a></li>
 
         </ul>
 
         </ul>
 
</li>
 
</li>
Line 79: Line 84:
 
// SET ACTIVE  
 
// SET ACTIVE  
  
var activeColor = 'color:rgb(51, 153, 51);';
+
var activeColor = '#D5DEB6';
 +
var element = document.getElementById('test');
 +
 
 
if (myurl.search("notebook") != -1){
 
if (myurl.search("notebook") != -1){
document.getElementById('notebook').style = activeColor;}
+
element = document.getElementById('notebook');}
 
else{
 
else{
 
if (myurl.search("humanp") != -1){
 
if (myurl.search("humanp") != -1){
document.getElementById('humanp').style = activeColor;}
+
element = document.getElementById('humanp');}
 
else{
 
else{
 
if (myurl.search("issues") != -1){
 
if (myurl.search("issues") != -1){
document.getElementById('issues').style = activeColor;}
+
element =document.getElementById('issues');}
 
else{
 
else{
 
if (myurl.search("achievements") != -1){
 
if (myurl.search("achievements") != -1){
document.getElementById('achiev').style = activeColor;}
+
element =document.getElementById('achiev');}
 
else{
 
else{
 
if (myurl.search("members") != -1){
 
if (myurl.search("members") != -1){
document.getElementById('team').style = activeColor;}
+
element = document.getElementById('team');}
 
else{
 
else{
 
if (myurl.search("project") != -1){
 
if (myurl.search("project") != -1){
document.getElementById('project').style = activeColor;}
+
element = document.getElementById('project');}
else{
+
document.getElementById('home').style = activeColor;
+
}
+
 
}
 
}
 
}
 
}
Line 105: Line 109:
 
}
 
}
 
}
 
}
 +
element.className="set";
 +
//element.style.color = activeColor;
 
</script>
 
</script>
  

Revision as of 08:27, 19 August 2015