Team:Technion/Template:Navigation

From 2012.igem.org

(Difference between revisions)
Line 97: Line 97:
<head>
<head>
<style>
<style>
-
.ddcolortabs{
+
#navbar {
-
padding: 0;
+
  margin: 0;
-
width: 100%;
+
  padding: 0;
-
background: transparent;
+
  height: 1em;
-
voice-family: "\"}\"";
+
  width: 100%;
-
voice-family: inherit;
+
  background: transparent; }
-
}
+
#navbar li {
-
 
+
  list-style: none;
-
.ddcolortabs ul{
+
  float: left;
-
font: normal 16px "Times New Roman", sans-serif;
+
  margin:0 2px 0 0;
-
margin:0;
+
  background-color: #77C16A ;
-
padding:0;
+
  font: normal 16px "Times New Roman", sans-serif; }
-
list-style:none;
+
#navbar li a {
-
}
+
  display: block;
-
 
+
  margin:0 2px 0 0;
-
.ddcolortabs li{
+
  padding: 4px 8px 2px 7px;
-
display:inline;
+
  letter-spacing: 1px;
-
margin:0 2px 0 0;
+
  color: #fff;
-
padding:0;
+
  text-decoration: none; }
-
}
+
#navbar li ul {
-
 
+
  display: none;  
-
.ddcolortabs a{
+
  width: 10em; /* Width to help Opera out */
-
float:left;
+
  background-color: #77C16A ;}
-
color: white;
+
#navbar li:hover {
-
background: #77C16A url(media/color_tabs_left.gif) no-repeat left top;
+
  background-color: #00632d; }
-
margin:0 2px 0 0;
+
#navbar li:hover ul, #navbar li.hover ul {
-
padding:0 0 1px 3px;
+
  display: block;
-
text-decoration:none;
+
  position: absolute;
-
letter-spacing: 1px;
+
  margin: 0;
-
}
+
  padding: 0; }
-
 
+
#navbar li:hover li, #navbar li.hover li {
-
.ddcolortabs a span{
+
  float: none; }
-
float:left;
+
#navbar li:hover li a, #navbar li.hover li a {
-
display:block;
+
  background-color: #77C16A ;
-
background: transparent url(media/color_tabs_right.gif) no-repeat right top;
+
  border-bottom: 1px solid #fff;
-
padding: 4px 8px 2px 7px;
+
  color: #fff; }
-
}
+
#navbar li li a:hover {
-
 
+
  background-color: #00632d; }
-
.ddcolortabs a span{
+
</style>
-
float:none;
+
-
}
+
-
 
+
-
.ddcolortabs a:hover{
+
-
background-color: #00632d;
+
-
}
+
-
 
+
-
.ddcolortabs a:hover span{
+
-
background-color: #00632d;
+
-
}
+
-
 
+
-
.ddcolortabs .selected a, #ddcolortabs .selected a span{ /*currently selected tab*/
+
-
background-color: #00632d;
+
-
}
+
-
.ddcolortabsline{
+
<script>
-
clear: both;
+
// Javascript originally by Patrick Griffiths and Dan Webb.
-
padding: 0;
+
// http://htmldog.com/articles/suckerfish/dropdowns/
-
width: 100%;
+
sfHover = function() {
-
height: 8px;
+
  var sfEls = document.getElementById("navbar").getElementsByTagName("li");
-
line-height: 8px;
+
  for (var i=0; i<sfEls.length; i++) {
-
background: #a2c091;
+
      sfEls[i].onmouseover=function() {
-
/*border-top: 1px solid #fff;*/ /*Remove this to remove border between bar and tabs*/
+
        this.className+=" hover";
 +
      }
 +
      sfEls[i].onmouseout=function() {
 +
        this.className=this.className.replace(new RegExp(" hover\\b"), "");
 +
      }
 +
  }
}
}
 +
if (window.attachEvent) window.attachEvent("onload", sfHover);
 +
</script>
</style>
</style>
</head>
</head>
<body>
<body>
<img src="https://static.igem.org/mediawiki/2012/5/52/Technion_banner.jpg">
<img src="https://static.igem.org/mediawiki/2012/5/52/Technion_banner.jpg">
 +
<ul id="navbar">
 +
      <!-- The strange spacing herein prevents an IE6 whitespace bug. -->
 +
        <li><a href="https://2012.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/igem.org/d/de/IGEM_basic_Logo_stylized.png" width="27" height="19.5"></a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion">Home</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Team">Team</a></li>
 +
        <li><a href="https://igem.org/Team.cgi?year=2012&team_name=Technion">Team Profile</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Project/Overview">Project</a>
 +
            <ul>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/Overview">Overview</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/YES_gates">YES gates</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/RS">Riboswitch</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/RNAPs">RNA polymerases</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/Reporter">Reporter system</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/Phage">The phage</a></li>
 +
              <li><a href="https://2012.igem.org/Team:Technion/Project/Results">Results</a></li></ul>       
 +
        </li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Parts">Parts</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Modeling">Modeling</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Notebook">Notebook</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Safety">Safety</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Attributions">Attributions</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Judging">Judging</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Tips">Tips</a></li>
 +
        <li><a href="https://2012.igem.org/Team:Technion/Sponsors">Sponsors</a></li>
 +
      </ul>
 +
<!--
<div id="colortab" class="ddcolortabs">
<div id="colortab" class="ddcolortabs">
<ul>
<ul>
Line 177: Line 196:
<li><a href="https://2012.igem.org/Team:Technion/Attributions"><span>Attributions</span></a></li>
<li><a href="https://2012.igem.org/Team:Technion/Attributions"><span>Attributions</span></a></li>
<li><a href="https://2012.igem.org/Team:Technion/Judging"><span>Judging</span></a></li>
<li><a href="https://2012.igem.org/Team:Technion/Judging"><span>Judging</span></a></li>
-
<!--<li><a href="https://2012.igem.org/Team:Technion/Tips"><span>Tips</span></a></li>-->
+
<li><a href="https://2012.igem.org/Team:Technion/Tips"><span>Tips</span></a></li>
<li><a href="https://2012.igem.org/Team:Technion/Sponsors"><span>Sponsors</span></a></li>
<li><a href="https://2012.igem.org/Team:Technion/Sponsors"><span>Sponsors</span></a></li>
</ul>
</ul>
</div>
</div>
-
<br><br>
+
<br><br>-->
</body>
</body>
</html>
</html>

Revision as of 14:53, 21 September 2012